[libcxx] r296573 - [libcxx] Support threads on Fuchsia
Petr Hosek via cfe-commits
cfe-commits at lists.llvm.org
Tue Feb 28 19:09:18 PST 2017
Author: phosek
Date: Tue Feb 28 21:09:18 2017
New Revision: 296573
URL: http://llvm.org/viewvc/llvm-project?rev=296573&view=rev
Log:
[libcxx] Support threads on Fuchsia
Differential Revision: https://reviews.llvm.org/D30278
Modified:
libcxx/trunk/src/thread.cpp
Modified: libcxx/trunk/src/thread.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/src/thread.cpp?rev=296573&r1=296572&r2=296573&view=diff
==============================================================================
--- libcxx/trunk/src/thread.cpp (original)
+++ libcxx/trunk/src/thread.cpp Tue Feb 28 21:09:18 2017
@@ -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
More information about the cfe-commits
mailing list