Skip to content

Commit 28ff480

Browse files
committed
Added missing symbol from SDK
1 parent 6fb7c89 commit 28ff480

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/Basic/Unix/TaskQueue.inc

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,10 @@
3535
#if !defined(__APPLE__)
3636
extern char **environ;
3737
#else
38-
#include <crt_externs.h> // for _NSGetEnviron
38+
extern "C" {
39+
// _NSGetEnviron is from crt_externs.h which is missing in the iOS SDK.
40+
extern char ***_NSGetEnviron(void);
41+
}
3942
#endif
4043

4144
namespace swift {

0 commit comments

Comments
 (0)