[llvm] r296890 - Add #include for unistd.h on Linux.
Zachary Turner via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 3 09:24:55 PST 2017
Author: zturner
Date: Fri Mar 3 11:24:55 2017
New Revision: 296890
URL: http://llvm.org/viewvc/llvm-project?rev=296890&view=rev
Log:
Add #include for unistd.h on Linux.
Modified:
llvm/trunk/lib/Support/Unix/Threading.inc
Modified: llvm/trunk/lib/Support/Unix/Threading.inc
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/Unix/Threading.inc?rev=296890&r1=296889&r2=296890&view=diff
==============================================================================
--- llvm/trunk/lib/Support/Unix/Threading.inc (original)
+++ llvm/trunk/lib/Support/Unix/Threading.inc Fri Mar 3 11:24:55 2017
@@ -30,6 +30,7 @@
#endif
#if defined(__linux__)
+#include <unistd.h>
#include <sys/syscall.h>
#endif
More information about the llvm-commits
mailing list