diff options
author | Bruno Haible <bruno@clisp.org> | 2010-08-29 19:20:47 +0200 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2010-08-29 21:03:20 +0200 |
commit | 560be60e7e4f34d4d07a74eb950f70d0774626a9 (patch) | |
tree | 2850b3518b311ddf475f6953e8f8b0992e0cdeb3 /lib | |
parent | ef6f425ed1ffea6f0e52e340c683d44bd1f7a5f4 (diff) | |
download | gnulib-560be60e7e4f34d4d07a74eb950f70d0774626a9.tar.gz |
Make the module 'malloc-gnu' work again on AIX and OSF/1.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/malloc.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/malloc.c b/lib/malloc.c index f236f37214..8f849b410a 100644 --- a/lib/malloc.c +++ b/lib/malloc.c @@ -21,8 +21,11 @@ #include <config.h> /* Only the AC_FUNC_MALLOC macro defines 'malloc' already in config.h. */ #ifdef malloc -# define NEED_MALLOC_GNU +# define NEED_MALLOC_GNU 1 # undef malloc +/* Whereas the gnulib module 'malloc-gnu' defines HAVE_MALLOC_GNU. */ +#elif GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU +# define NEED_MALLOC_GNU 1 #endif /* Specification. */ @@ -41,7 +44,7 @@ rpl_malloc (size_t n) { void *result; -#ifdef NEED_MALLOC_GNU +#if NEED_MALLOC_GNU if (n == 0) n = 1; #endif |