diff options
| author | Louis Dionne <ldionne@apple.com> | 2018-11-13 17:00:04 +0000 |
|---|---|---|
| committer | Louis Dionne <ldionne@apple.com> | 2018-11-13 17:00:04 +0000 |
| commit | c9c6212f6f6ef53d20fb2d8011e792ed623cdaa5 (patch) | |
| tree | b2b8b2ca9f6dc591ccde63d64b7462f55b2775f3 /libcxx/src | |
| parent | bcc5a7426151f7f7a6058e9b12d81bc097d5c37a (diff) | |
| download | bcm5719-llvm-c9c6212f6f6ef53d20fb2d8011e792ed623cdaa5.tar.gz bcm5719-llvm-c9c6212f6f6ef53d20fb2d8011e792ed623cdaa5.zip | |
[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.
llvm-svn: 346763
Diffstat (limited to 'libcxx/src')
| -rw-r--r-- | libcxx/src/thread.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libcxx/src/thread.cpp b/libcxx/src/thread.cpp index 550da8ea71f..241cfee23c5 100644 --- a/libcxx/src/thread.cpp +++ b/libcxx/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__) |

