More fixup for r307281: Move the #includes to sanitizer_linux.cc
authorKuba Mracek <mracek@apple.com>
Thu, 6 Jul 2017 17:45:01 +0000 (17:45 +0000)
committerKuba Mracek <mracek@apple.com>
Thu, 6 Jul 2017 17:45:01 +0000 (17:45 +0000)
llvm-svn: 307284

compiler-rt/lib/sanitizer_common/sanitizer_linux.cc
compiler-rt/lib/sanitizer_common/sanitizer_posix.cc

index 71bad46..f3994bf 100644 (file)
 #include <ucontext.h>
 #include <unistd.h>
 
+#if SANITIZER_LINUX
+#include <sys/utsname.h>
+#endif
+
+#if SANITIZER_LINUX && !SANITIZER_ANDROID
+#include <sys/personality.h>
+#endif
+
 #if SANITIZER_FREEBSD
 #include <sys/exec.h>
 #include <sys/sysctl.h>
index 7841b24..4abc9d1 100644 (file)
 #include <signal.h>
 #include <sys/mman.h>
 
-#if SANITIZER_LINUX
-#include <sys/utsname.h>
-#endif
-
-#if SANITIZER_LINUX && !SANITIZER_ANDROID
-#include <sys/personality.h>
-#endif
-
 #if SANITIZER_FREEBSD
 // The MAP_NORESERVE define has been removed in FreeBSD 11.x, and even before
 // that, it was never implemented.  So just define it to zero.