[PATCH] [libcxxabi] On single threaded systems, turn mutexes into nops

kledzik at apple.com kledzik at apple.com
Tue Apr 15 17:02:11 PDT 2014



================
Comment at: src/cxa_exception_storage.cpp:35
@@ -34,2 +34,3 @@
 
 #include <pthread.h>
+#include <cstdlib>          // for calloc, free, atexit
----------------
Should this be:

  #include <unistd.h>
  #ifdef _POSIX_THREADS
  #include <pthread.h>
  #endif

so that this will also compile on a system without pthread.h?


http://reviews.llvm.org/D3386






More information about the cfe-commits mailing list