core: Merge malloc_trim patch

We've had multiple opportunities where Richard Mudgett's
malloc_trim patch has been useful. Let's get it
pushed up to gerrit and merged.

Since malloc_trim is only available in libc, an entry is
added to configure.ac to create a definition for
HAVE_MALLOC_TRIM.

Change-Id: Ia38308c550149d9d6eae4ca414a649957de9700c
This commit is contained in:
Chris-Savinovich
2018-12-03 14:01:01 -06:00
committed by Chris Savinovich
parent a2a8a41db3
commit 1f09c61804
4 changed files with 38 additions and 2 deletions

View File

@@ -492,6 +492,9 @@
/* Define to 1 if you have the <malloc.h> header file. */
#undef HAVE_MALLOC_H
/* Define to 1 if you have the `malloc_trim' function. */
#undef HAVE_MALLOC_TRIM
/* Define to 1 if you have the <math.h> header file. */
#undef HAVE_MATH_H