[compiler-rt] r201071 - [Sanitizer] Don't #include the same system header twice.

Alexey Samsonov samsonov at google.com
Mon Feb 10 00:57:28 PST 2014


Author: samsonov
Date: Mon Feb 10 02:57:28 2014
New Revision: 201071

URL: http://llvm.org/viewvc/llvm-project?rev=201071&view=rev
Log:
[Sanitizer] Don't #include the same system header twice.

Modified:
    compiler-rt/trunk/lib/sanitizer_common/sanitizer_platform_limits_posix.cc

Modified: compiler-rt/trunk/lib/sanitizer_common/sanitizer_platform_limits_posix.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/sanitizer_platform_limits_posix.cc?rev=201071&r1=201070&r2=201071&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_platform_limits_posix.cc (original)
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_platform_limits_posix.cc Mon Feb 10 02:57:28 2014
@@ -45,11 +45,14 @@
 #include <time.h>
 #include <wchar.h>
 
+#if !SANITIZER_ANDROID
+#include <sys/mount.h>
+#endif
+
 #if SANITIZER_LINUX
 #include <mntent.h>
 #include <netinet/ether.h>
 #include <utime.h>
-#include <sys/mount.h>
 #include <sys/ptrace.h>
 #include <sys/sysinfo.h>
 #include <sys/vt.h>
@@ -96,7 +99,6 @@
 #include <linux/serial.h>
 #include <sys/msg.h>
 #include <sys/ipc.h>
-#include <sys/shm.h>
 #endif // SANITIZER_LINUX && !SANITIZER_ANDROID
 
 #if SANITIZER_ANDROID
@@ -116,7 +118,6 @@
 #if SANITIZER_MAC
 #include <net/ethernet.h>
 #include <sys/filio.h>
-#include <sys/mount.h>
 #include <sys/sockio.h>
 #endif
 





More information about the llvm-commits mailing list