[PATCH] D54338: Fix threads build on GNU/Hurd

Samuel Thibault via Phabricator reviews at reviews.llvm.org
Mon Nov 12 01:34:43 PST 2018


sthibaul updated this revision to Diff 173629.
sthibaul added a comment.

I have dropped the endif comment as requested.


Repository:
  rCXX libc++

https://reviews.llvm.org/D54338

Files:
  src/thread.cpp


Index: src/thread.cpp
===================================================================
--- src/thread.cpp
+++ src/thread.cpp
@@ -19,9 +19,9 @@
 
 #if defined(__unix__) || (defined(__APPLE__) && defined(__MACH__))
 # include <sys/param.h>
-# if defined(BSD)
+# if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__DragonFly__) || defined(__APPLE__)
 #   include <sys/sysctl.h>
-# endif // defined(BSD)
+# endif
 #endif // defined(__unix__) || (defined(__APPLE__) && defined(__MACH__))
 
 #if defined(__unix__) || (defined(__APPLE__) && defined(__MACH__)) || defined(__CloudABI__) || defined(__Fuchsia__)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D54338.173629.patch
Type: text/x-patch
Size: 637 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20181112/b26aebdf/attachment.bin>


More information about the libcxx-commits mailing list