projects
/
debian
/
tar
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Imported Upstream version 1.24
[debian/tar]
/
gnu
/
realloc.c
diff --git
a/gnu/realloc.c
b/gnu/realloc.c
index 04894fa530ae8a583d871f7138759ffabfd0ce8d..61d047f66032fbba2f70454766ee879e46cc3327 100644
(file)
--- a/
gnu/realloc.c
+++ b/
gnu/realloc.c
@@
-25,11
+25,14
@@
/* Only the AC_FUNC_REALLOC macro defines 'realloc' already in config.h. */
#ifdef realloc
# define NEED_REALLOC_GNU 1
/* 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.
#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
# define SYSTEM_MALLOC_GLIBC_COMPATIBLE 1
#endif