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

Samuel Thibault via Phabricator reviews at reviews.llvm.org
Sat Nov 10 02:36:25 PST 2018


sthibaul updated this revision to Diff 173502.

https://reviews.llvm.org/D54338

Files:
  src/thread.cpp


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


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D54338.173502.patch
Type: text/x-patch
Size: 483 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20181110/86d78b16/attachment.bin>


More information about the libcxx-commits mailing list