summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexey Samsonov <samsonov@google.com>2013-09-25 07:41:46 +0000
committerAlexey Samsonov <samsonov@google.com>2013-09-25 07:41:46 +0000
commit4fc53e4c063e0710da5917bf2ad50b02f8b76a6a (patch)
treea18d87191f3226b639d3fa56d09d7fc0c3cddcae
parent445eb3327b153da0fcb992b23a56189aa5231ced (diff)
downloadbcm5719-llvm-4fc53e4c063e0710da5917bf2ad50b02f8b76a6a.tar.gz
bcm5719-llvm-4fc53e4c063e0710da5917bf2ad50b02f8b76a6a.zip
[Sanitizer] Don't include wordexp.h on Android
llvm-svn: 191358
-rw-r--r--compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cc b/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cc
index 212828ac374..bcf2c0a50c1 100644
--- a/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cc
+++ b/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cc
@@ -42,7 +42,6 @@
#include <termios.h>
#include <time.h>
#include <wchar.h>
-#include <wordexp.h>
#if SANITIZER_LINUX
#include <utime.h>
@@ -64,6 +63,7 @@
#if !SANITIZER_ANDROID
#include <sys/ucontext.h>
+#include <wordexp.h>
#endif
#if SANITIZER_LINUX && !SANITIZER_ANDROID
@@ -875,9 +875,11 @@ CHECK_TYPE_SIZE(__kernel_loff_t);
CHECK_TYPE_SIZE(__kernel_fd_set);
#endif
+#if !SANITIZER_ANDROID
CHECK_TYPE_SIZE(wordexp_t);
CHECK_SIZE_AND_OFFSET(wordexp_t, we_wordc);
CHECK_SIZE_AND_OFFSET(wordexp_t, we_wordv);
CHECK_SIZE_AND_OFFSET(wordexp_t, we_offs);
+#endif
#endif // SANITIZER_LINUX || SANITIZER_MAC
OpenPOWER on IntegriCloud