[PATCH] D11781: Refactored pthread usage in libcxx

Jonathan Roelofs via cfe-commits cfe-commits at lists.llvm.org
Mon Aug 10 13:43:40 PDT 2015


jroelofs added inline comments.

================
Comment at: include/__config:742
@@ +741,3 @@
+#ifndef _LIBCPP_HAS_NO_THREADS
+# if defined(__FreeBSD__) || \
+    defined(__NetBSD__) || \
----------------
@espositofulvio: @ed meant this:

```
#ifndef _WIN32
#  include <unistd.h>
#  if _POSIX_THREADS > 0
...
#  endif
#endif
```

Which //is// the correct way to test for this.


Repository:
  rL LLVM

http://reviews.llvm.org/D11781





More information about the cfe-commits mailing list