diff options
author | Ed Schouten <ed@80386.nl> | 2015-03-10 08:01:10 +0000 |
---|---|---|
committer | Ed Schouten <ed@80386.nl> | 2015-03-10 08:01:10 +0000 |
commit | cda27e8197fc15da162a445b3aaedff5a006a462 (patch) | |
tree | c2d42c696dfa7e79e6f218591048a65ae73d9310 /libcxx/src | |
parent | c19393c758e0e7d24fa39ef00c8a6a7beeb731ad (diff) | |
download | bcm5719-llvm-cda27e8197fc15da162a445b3aaedff5a006a462.tar.gz bcm5719-llvm-cda27e8197fc15da162a445b3aaedff5a006a462.zip |
Don't include <sys/sysctl.h> on CloudABI.
As CloudABI does not provide sysctl(), this header is not present. Make
thread.cpp build correctly (and pass all tests) by not including the header.
llvm-svn: 231768
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 6aad558abaa..bd27f287838 100644 --- a/libcxx/src/thread.cpp +++ b/libcxx/src/thread.cpp @@ -17,9 +17,9 @@ #include "limits" #include <sys/types.h> #if !defined(_WIN32) -# if !defined(__sun__) && !defined(__linux__) && !defined(_AIX) && !defined(__native_client__) +# if !defined(__sun__) && !defined(__linux__) && !defined(_AIX) && !defined(__native_client__) && !defined(__CloudABI__) # include <sys/sysctl.h> -# endif // !defined(__sun__) && !defined(__linux__) && !defined(_AIX) && !defined(__native_client__) +# endif // !defined(__sun__) && !defined(__linux__) && !defined(_AIX) && !defined(__native_client__) && !defined(__CloudABI__) # include <unistd.h> #endif // !_WIN32 |