[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
This commit is contained in:
Anna Zaks 2016-11-15 01:57:29 +00:00
parent 6b77ad3546
commit 71b55d92c5
1 changed files with 4 additions and 0 deletions

View File

@ -61,6 +61,10 @@ int spawn_child(char **argv) {
#include <errno.h>
#include <sys/wait.h>
#if defined(__APPLE__)
#include <TargetConditionals.h>
#endif
#if defined(__APPLE__) && !(defined(TARGET_OS_IPHONE) && TARGET_OS_IPHONE)
#define USE_NSGETENVIRON 1
#else