1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-28 00:21:52 +03:00

Make malloc build for no-threads configurations.

This commit is contained in:
Roland McGrath
2012-08-17 11:29:45 -07:00
parent 2ae1ae5cf4
commit 750c1f2a9a
4 changed files with 25 additions and 12 deletions

View File

@ -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 ---------------- */