diff options
| author | Ed Schouten <ed@nuxi.nl> | 2017-02-11 08:30:18 +0000 |
|---|---|---|
| committer | Ed Schouten <ed@nuxi.nl> | 2017-02-11 08:30:18 +0000 |
| commit | de5669e46c4f391fb3d939e80fc8613f92190181 (patch) | |
| tree | 30781a3664453db009f73c2b8cfdc39c898e9c81 /libcxx/src/thread.cpp | |
| parent | afcf026d811937e52e5a4c2cb0a9ab8b4a77d462 (diff) | |
| download | bcm5719-llvm-de5669e46c4f391fb3d939e80fc8613f92190181.tar.gz bcm5719-llvm-de5669e46c4f391fb3d939e80fc8613f92190181.zip | |
Fix the build of thread.cpp on CloudABI.
CloudABI does provide unistd.h, but doesn't define __unix__. We need to
include this header file to make hardware_concurrency work.
llvm-svn: 294832
Diffstat (limited to 'libcxx/src/thread.cpp')
| -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 6fa549d9b59..74194ac4e36 100644 --- a/libcxx/src/thread.cpp +++ b/libcxx/src/thread.cpp @@ -24,9 +24,9 @@ # endif // defined(BSD) #endif // defined(__unix__) || (defined(__APPLE__) && defined(__MACH__)) -#if defined(__unix__) || (defined(__APPLE__) && defined(__MACH__)) +#if defined(__unix__) || (defined(__APPLE__) && defined(__MACH__)) || defined(__CloudABI__) # include <unistd.h> -#endif // defined(__unix__) || (defined(__APPLE__) && defined(__MACH__)) +#endif // defined(__unix__) || (defined(__APPLE__) && defined(__MACH__)) || defined(__CloudABI__) #if defined(__NetBSD__) #pragma weak pthread_create // Do not create libpthread dependency |

