summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2007-09-09 17:38:23 +0000
committerBruno Haible <bruno@clisp.org>2007-09-09 17:38:23 +0000
commit3ba9dca25043b6cb2ba35c63e3b55c7a1993bf8c (patch)
treed8dfd3a2afea51f706886b95586934313620f99c /lib
parent212d9536fe505a78d865bb09b7ef4b1ab3cff38b (diff)
downloadgnulib-3ba9dca25043b6cb2ba35c63e3b55c7a1993bf8c.tar.gz
Oops, avoid an infinite recursion.
Diffstat (limited to 'lib')
-rw-r--r--lib/calloc.c3
-rw-r--r--lib/malloc.c3
-rw-r--r--lib/realloc.c4
3 files changed, 10 insertions, 0 deletions
diff --git a/lib/calloc.c b/lib/calloc.c
index 0b92d2ffeb..72045dbf16 100644
--- a/lib/calloc.c
+++ b/lib/calloc.c
@@ -30,6 +30,9 @@
#include <errno.h>
+/* Call the system's calloc below. */
+#undef calloc
+
/* Allocate and zero-fill an NxS-byte block of memory from the heap.
If N or S is zero, allocate and zero-fill a 1-byte block. */
diff --git a/lib/malloc.c b/lib/malloc.c
index b6ecf37466..eba131d1f2 100644
--- a/lib/malloc.c
+++ b/lib/malloc.c
@@ -30,6 +30,9 @@
#include <errno.h>
+/* Call the system's malloc below. */
+#undef malloc
+
/* Allocate an N-byte block of memory from the heap.
If N is zero, allocate a 1-byte block. */
diff --git a/lib/realloc.c b/lib/realloc.c
index a68f144bd3..b1c04508c8 100644
--- a/lib/realloc.c
+++ b/lib/realloc.c
@@ -30,6 +30,10 @@
#include <errno.h>
+/* Call the system's malloc and realloc below. */
+#undef malloc
+#undef realloc
+
/* Change the size of an allocated block of memory P to N bytes,
with error checking. If N is zero, change it to 1. If P is NULL,
use malloc. */