From 0be050c8b6579abd76f4a405a1964532d4e71bf1 Mon Sep 17 00:00:00 2001 From: Bernhard Reutner-Fischer Date: Thu, 16 Oct 2008 21:16:46 +0000 Subject: This should fix malloc with debug and without threads. (Chase N Douglas) This should have been in r23660. Untested. --- libc/stdlib/malloc/heap.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'libc/stdlib/malloc/heap.h') diff --git a/libc/stdlib/malloc/heap.h b/libc/stdlib/malloc/heap.h index 8b05cded1..2a686b601 100644 --- a/libc/stdlib/malloc/heap.h +++ b/libc/stdlib/malloc/heap.h @@ -19,6 +19,11 @@ # include # include # define HEAP_USE_LOCKING +# define __heap_do_lock(heap_lock) __pthread_mutex_lock (heap_lock) +# define __heap_do_unlock(heap_lock) __pthread_mutex_unlock (heap_lock) +#else +# define __heap_do_lock(heap_lock) +# define __heap_do_unlock(heap_lock) #endif -- cgit v1.2.3