From 71b55d92c57271c13807e9d3babb75b0a139fcfd Mon Sep 17 00:00:00 2001 From: Anna Zaks Date: Tue, 15 Nov 2016 01:57:29 +0000 Subject: [PATCH] [asan] Fixup to r286608 that makes the test pass on iOS. TARGET_OS_IPHONE is defined in TargetConditionals.h. Without the include the iOS path is never triggered. llvm-svn: 286929 --- compiler-rt/test/asan/TestCases/exitcode.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/compiler-rt/test/asan/TestCases/exitcode.cc b/compiler-rt/test/asan/TestCases/exitcode.cc index 276934fe2116..cb10540999b7 100644 --- a/compiler-rt/test/asan/TestCases/exitcode.cc +++ b/compiler-rt/test/asan/TestCases/exitcode.cc @@ -61,6 +61,10 @@ int spawn_child(char **argv) { #include #include +#if defined(__APPLE__) +#include +#endif + #if defined(__APPLE__) && !(defined(TARGET_OS_IPHONE) && TARGET_OS_IPHONE) #define USE_NSGETENVIRON 1 #else