about summary refs log tree commit diff
path: root/malloc/malloc.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@hack.frob.com>2012-08-17 11:29:45 -0700
committerRoland McGrath <roland@hack.frob.com>2012-08-17 11:29:45 -0700
commit750c1f2a9aefc7b3329283c1b0c95e1a0bb88f14 (patch)
tree2901a662169f86b152d62b3a67b157e89fd022c1 /malloc/malloc.c
parent2ae1ae5cf441a90171ff483e3f0de6e8a9d611e4 (diff)
downloadglibc-750c1f2a9aefc7b3329283c1b0c95e1a0bb88f14.tar.gz
glibc-750c1f2a9aefc7b3329283c1b0c95e1a0bb88f14.tar.xz
glibc-750c1f2a9aefc7b3329283c1b0c95e1a0bb88f14.zip
Make malloc build for no-threads configurations.
Diffstat (limited to 'malloc/malloc.c')
-rw-r--r--malloc/malloc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/malloc/malloc.c b/malloc/malloc.c
index 373e063fc3..0f1796c913 100644
--- a/malloc/malloc.c
+++ b/malloc/malloc.c
@@ -1075,9 +1075,10 @@ static void*   realloc_check(void* oldmem, size_t bytes,
 			       const void *caller);
 static void*   memalign_check(size_t alignment, size_t bytes,
 				const void *caller);
-/* These routines are never needed in this configuration.  */
+#ifndef NO_THREADS
 static void*   malloc_atfork(size_t sz, const void *caller);
 static void      free_atfork(void* mem, const void *caller);
+#endif
 
 
 /* ------------- Optional versions of memcopy ---------------- */