summaryrefslogtreecommitdiffstats
path: root/libcxx/src/thread.cpp
diff options
context:
space:
mode:
authorPetr Hosek <phosek@chromium.org>2017-03-01 03:09:18 +0000
committerPetr Hosek <phosek@chromium.org>2017-03-01 03:09:18 +0000
commit11d1770e14a73ffdaece5f3935db383b64df2c03 (patch)
tree18831a8d884f15a584b1add69dcb13438fb00e56 /libcxx/src/thread.cpp
parent07c9338841be62250647ab632c9ea632789bd6ca (diff)
downloadbcm5719-llvm-11d1770e14a73ffdaece5f3935db383b64df2c03.tar.gz
bcm5719-llvm-11d1770e14a73ffdaece5f3935db383b64df2c03.zip
[libcxx] Support threads on Fuchsia
Differential Revision: https://reviews.llvm.org/D30278 llvm-svn: 296573
Diffstat (limited to 'libcxx/src/thread.cpp')
-rw-r--r--libcxx/src/thread.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/libcxx/src/thread.cpp b/libcxx/src/thread.cpp
index 74194ac4e36..3f283c385b7 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__)) || defined(__CloudABI__)
+#if defined(__unix__) || (defined(__APPLE__) && defined(__MACH__)) || defined(__CloudABI__) || defined(__Fuchsia__)
# include <unistd.h>
-#endif // defined(__unix__) || (defined(__APPLE__) && defined(__MACH__)) || defined(__CloudABI__)
+#endif // defined(__unix__) || (defined(__APPLE__) && defined(__MACH__)) || defined(__CloudABI__) || defined(__Fuchsia__)
#if defined(__NetBSD__)
#pragma weak pthread_create // Do not create libpthread dependency
OpenPOWER on IntegriCloud