D54338-hurd-libcxx-threads-build
authorLLVM Packaging Team <pkg-llvm-team@lists.alioth.debian.org>
Tue, 9 Jul 2019 19:04:39 +0000 (20:04 +0100)
committerPeter Michael Green <plugwash@raspbian.org>
Tue, 9 Jul 2019 19:04:39 +0000 (20:04 +0100)
r346763 | ldionne | 2018-11-13 18:00:04 +0100 (Tue, 13 Nov 2018) | 5 lines

[libcxx] GNU/Hurd uses BSD-based interfaces, but does not (and won't) provide <sys/sysctl.h>

Reviewed as https://reviews.llvm.org/D54338.

Thanks to sthibaul for the patch.

Gbp-Pq: Topic hurd
Gbp-Pq: Name D54338-hurd-libcxx-threads-build.diff

libcxx/src/thread.cpp

index 550da8ea71f313234defae8a514eeeb0c0058cec..241cfee23c5be04d57ffddda0831d70755e493cc 100644 (file)
@@ -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__)