diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2008-10-16 21:16:46 +0000 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2008-10-16 21:16:46 +0000 |
commit | 0be050c8b6579abd76f4a405a1964532d4e71bf1 (patch) | |
tree | 646250b525d2fc2116b54455cd3e1146ebf85e7f /libc/stdlib/malloc/malloc.h | |
parent | 9674f4133f323e0d312a0e8f5ff3886c590f459e (diff) |
This should fix malloc with debug and without threads. (Chase N Douglas)
This should have been in r23660. Untested.
Diffstat (limited to 'libc/stdlib/malloc/malloc.h')
-rw-r--r-- | libc/stdlib/malloc/malloc.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libc/stdlib/malloc/malloc.h b/libc/stdlib/malloc/malloc.h index f49ed34e3..4bad93276 100644 --- a/libc/stdlib/malloc/malloc.h +++ b/libc/stdlib/malloc/malloc.h @@ -222,7 +222,9 @@ extern void __malloc_debug_printf (int indent, const char *fmt, ...); /* The malloc heap. */ extern struct heap_free_area *__malloc_heap; +#ifdef __UCLIBC_HAS_THREADS__ extern malloc_mutex_t __malloc_heap_lock; #ifdef __UCLIBC_UCLINUX_BROKEN_MUNMAP__ extern malloc_mutex_t __malloc_mmb_heap_lock; #endif +#endif |