forked from OSchip/llvm-project
[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:
parent
6b77ad3546
commit
71b55d92c5
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue