summaryrefslogtreecommitdiffstats
path: root/libcxxabi/src
diff options
context:
space:
mode:
authorHoward Hinnant <hhinnant@apple.com>2012-01-23 23:51:56 +0000
committerHoward Hinnant <hhinnant@apple.com>2012-01-23 23:51:56 +0000
commit671caae892391bcbcd998209cbd8f0d147c98941 (patch)
treebb815ffb4870f795814361b307c296b7d1ccee6a /libcxxabi/src
parent1a74724fc9b2e0d3d5aa8e33561f51c80d919a8a (diff)
downloadbcm5719-llvm-671caae892391bcbcd998209cbd8f0d147c98941.tar.gz
bcm5719-llvm-671caae892391bcbcd998209cbd8f0d147c98941.zip
Added missing #include
llvm-svn: 148749
Diffstat (limited to 'libcxxabi/src')
-rw-r--r--libcxxabi/src/fallback_malloc.cpp2
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;
OpenPOWER on IntegriCloud