diff options
Diffstat (limited to 'libcxxabi/src/fallback_malloc.cpp')
-rw-r--r-- | libcxxabi/src/fallback_malloc.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libcxxabi/src/fallback_malloc.cpp b/libcxxabi/src/fallback_malloc.cpp index daaf2192d9b..b83cb8f6226 100644 --- a/libcxxabi/src/fallback_malloc.cpp +++ b/libcxxabi/src/fallback_malloc.cpp @@ -22,6 +22,8 @@ // for each chunk. The overhead of each chunk is kept low by keeping pointers // as two byte offsets within the heap, rather than (4 or 8 byte) pointers. +#include <pthread.h> + namespace { static pthread_mutex_t heap_mutex = PTHREAD_MUTEX_INITIALIZER; |