summaryrefslogtreecommitdiff
path: root/gl/realloc.c
diff options
context:
space:
mode:
authorSimon Josefsson <simon@josefsson.org>2010-10-14 15:52:47 +0200
committerSimon Josefsson <simon@josefsson.org>2010-10-14 15:52:47 +0200
commitdbe767085787f5fdec183749a86c279a28676cc8 (patch)
treef618faa5de5488463a8715a410915cb0ddfec04a /gl/realloc.c
parent9b3338ea218a58adb2f573f023718be1f0372da4 (diff)
downloadgnutls-dbe767085787f5fdec183749a86c279a28676cc8.tar.gz
Update gnulib files.
Diffstat (limited to 'gl/realloc.c')
-rw-r--r--gl/realloc.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/gl/realloc.c b/gl/realloc.c
index 36aeecc41b..053208f375 100644
--- a/gl/realloc.c
+++ b/gl/realloc.c
@@ -23,11 +23,14 @@
/* Only the AC_FUNC_REALLOC macro defines 'realloc' already in config.h. */
#ifdef realloc
# define NEED_REALLOC_GNU 1
+/* Whereas the gnulib module 'realloc-gnu' defines HAVE_REALLOC_GNU. */
+#elif GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU
+# define NEED_REALLOC_GNU 1
#endif
/* Infer the properties of the system's malloc function.
- Only the AC_FUNC_MALLOC macro defines 'malloc' already in config.h. */
-#if GNULIB_MALLOC_GNU && !defined malloc
+ The gnulib module 'malloc-gnu' defines HAVE_MALLOC_GNU. */
+#if GNULIB_MALLOC_GNU && HAVE_MALLOC_GNU
# define SYSTEM_MALLOC_GLIBC_COMPATIBLE 1
#endif