summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2003-06-14 04:25:57 +0000
committerEric Andersen <andersen@codepoet.org>2003-06-14 04:25:57 +0000
commit5f9e364ca5cd244b4ccd63dd2954108bba1f7853 (patch)
treeca6118394862cea8daef035983b19c79a3bb6e05 /include
parent52963a451fd0fb846eec993c7f10261a1541028d (diff)
Comment out the rpl_malloc workaround. It was a good idea, but it violates
namespace guarantees and conflicts with other programs that have used the AC_FUNC_MALLOC autoconf macro properly.
Diffstat (limited to 'include')
-rw-r--r--include/stdlib.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/stdlib.h b/include/stdlib.h
index b8b0457d2..ac73fc143 100644
--- a/include/stdlib.h
+++ b/include/stdlib.h
@@ -547,6 +547,7 @@ extern void *malloc (size_t __size) __THROW __attribute_malloc__;
/* Allocate NMEMB elements of SIZE bytes each, all initialized to 0. */
extern void *calloc (size_t __nmemb, size_t __size)
__THROW __attribute_malloc__;
+#if 0
/* Cope with autoconf's broken AC_FUNC_MALLOC macro, which
* redefines malloc to rpl_malloc if it does not detect glibc
* style returning-a-valid-pointer-for-malloc(0) behavior. This
@@ -560,6 +561,7 @@ static __inline void *rpl_malloc (size_t __size)
return malloc(__size);
}
#endif
+#endif
#ifndef __need_malloc_and_calloc
/* Re-allocate the previously allocated block