diff options
author | Zachary Turner <zturner@google.com> | 2017-03-03 18:38:22 +0000 |
---|---|---|
committer | Zachary Turner <zturner@google.com> | 2017-03-03 18:38:22 +0000 |
commit | d97381367a7f25267ab96658710113aa0687f420 (patch) | |
tree | 772131f4f50b1d5b028b096d61a49c79afa8043b /llvm/lib/Support | |
parent | cc31871dc4b7e711942f1a441e35acbea519cdef (diff) | |
download | bcm5719-llvm-d97381367a7f25267ab96658710113aa0687f420.tar.gz bcm5719-llvm-d97381367a7f25267ab96658710113aa0687f420.zip |
Add missing #includes for FreeBSD.
llvm-svn: 296902
Diffstat (limited to 'llvm/lib/Support')
-rw-r--r-- | llvm/lib/Support/Unix/Threading.inc | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/llvm/lib/Support/Unix/Threading.inc b/llvm/lib/Support/Unix/Threading.inc index 06f4a2da6e7..2bcf8e5cd5f 100644 --- a/llvm/lib/Support/Unix/Threading.inc +++ b/llvm/lib/Support/Unix/Threading.inc @@ -22,16 +22,21 @@ #include <pthread.h> #if defined(__FreeBSD__) -#include <pthread_np.h> +#include <pthread_np.h> // For pthread_getthreadid_np() +#endif + +#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) +#include <errno.h> +#include <unistd.h> #endif #if defined(__NetBSD__) -#include <lwp.h> +#include <lwp.h> // For _lwp_self() #endif #if defined(__linux__) -#include <unistd.h> -#include <sys/syscall.h> +#include <unistd.h> // For syscall() +#include <sys/syscall.h> // For syscall codes #endif #if defined(__NetBSD__) || defined(__FreeBSD__) || defined(__FreeBSD_kernel__) |