From 59eda029a8a35e5f4e5cd7be0f84c6629e48ec6e Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Fri, 19 Feb 2016 17:07:45 +0100 Subject: malloc: Remove NO_THREADS No functional change. It was not possible to build without threading support before. --- malloc/arena.c | 3 --- malloc/malloc.c | 2 -- 2 files changed, 5 deletions(-) (limited to 'malloc') diff --git a/malloc/arena.c b/malloc/arena.c index 54cf086..cd26cdd 100644 --- a/malloc/arena.c +++ b/malloc/arena.c @@ -127,8 +127,6 @@ int __malloc_initialized = -1; /**************************************************************************/ -#ifndef NO_THREADS - /* atfork support. */ static void *(*save_malloc_hook)(size_t __size, const void *); @@ -327,7 +325,6 @@ ptmalloc_unlock_all2 (void) # define ptmalloc_unlock_all2 ptmalloc_unlock_all # endif -#endif /* !NO_THREADS */ /* Initialization routine. */ #include diff --git a/malloc/malloc.c b/malloc/malloc.c index 1038df4..b8a43bf 100644 --- a/malloc/malloc.c +++ b/malloc/malloc.c @@ -1073,10 +1073,8 @@ 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); -#ifndef NO_THREADS static void* malloc_atfork(size_t sz, const void *caller); static void free_atfork(void* mem, const void *caller); -#endif /* ------------------ MMAP support ------------------ */ -- cgit v1.1