summaryrefslogtreecommitdiff
path: root/gl/realloc.c
diff options
context:
space:
mode:
authorSimon Josefsson <simon@josefsson.org>2010-09-21 15:00:28 +0200
committerSimon Josefsson <simon@josefsson.org>2010-09-21 15:00:28 +0200
commita52d2b3e2f135a563ed5a7299aef5d4a0397c50d (patch)
tree17051163de8e3f6c0c7ac8a6def83ef3677d1eec /gl/realloc.c
parent78819671f59cc4dea560b1ef3a21a04991e7822a (diff)
downloadlibtasn1-a52d2b3e2f135a563ed5a7299aef5d4a0397c50d.tar.gz
libtasn1-a52d2b3e2f135a563ed5a7299aef5d4a0397c50d.tar.bz2
libtasn1-a52d2b3e2f135a563ed5a7299aef5d4a0397c50d.zip
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 36aeecc..053208f 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