summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorKamil Rytarowski <n54@gmx.com>2017-03-04 17:42:46 +0000
committerKamil Rytarowski <n54@gmx.com>2017-03-04 17:42:46 +0000
commit71efce238633f375d6ab2f3de0ba5ca10216d562 (patch)
treef84c13aad3f629a84a19703c83cd22a69a3b5dfb /llvm/lib
parent777de779565c63ee09606ab89233f28259f79f72 (diff)
downloadbcm5719-llvm-71efce238633f375d6ab2f3de0ba5ca10216d562.tar.gz
bcm5719-llvm-71efce238633f375d6ab2f3de0ba5ca10216d562.zip
Improve the Threading code on NetBSD
Do not include <sys/user.h> on NetBSD. It's dead file and will be removed. No need to include <sys/sysctl.h> in this code context on NetBSD. llvm-svn: 296973
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Support/Unix/Threading.inc7
1 files changed, 2 insertions, 5 deletions
diff --git a/llvm/lib/Support/Unix/Threading.inc b/llvm/lib/Support/Unix/Threading.inc
index 833b6bed4e7..2c528bde49a 100644
--- a/llvm/lib/Support/Unix/Threading.inc
+++ b/llvm/lib/Support/Unix/Threading.inc
@@ -26,6 +26,8 @@
#endif
#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
+#include <sys/sysctl.h>
+#include <sys/user.h>
#include <errno.h>
#include <unistd.h>
#endif
@@ -39,11 +41,6 @@
#include <sys/syscall.h> // For syscall codes
#endif
-#if defined(__NetBSD__) || defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
-#include <sys/sysctl.h>
-#include <sys/user.h>
-#endif
-
namespace {
struct ThreadInfo {
void(*UserFn)(void *);
OpenPOWER on IntegriCloud