We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 76b1357 + 68775d9 commit 85314f7Copy full SHA for 85314f7
CoreFoundation/Base.subproj/CFPlatform.c
@@ -22,6 +22,10 @@
22
#include <mach-o/dyld.h>
23
#endif
24
25
+#if TARGET_OS_WASI
26
+#include <wasi/libc-environ.h>
27
+#endif
28
+
29
#define _CFEmitInternalDiagnostics 0
30
31
@@ -1813,8 +1817,10 @@ CF_EXPORT char **_CFEnviron(void) {
1813
1817
return *_NSGetEnviron();
1814
1818
#elif TARGET_OS_WIN32
1815
1819
return _environ;
1820
+#elif TARGET_OS_WASI
1821
+ return __wasilibc_get_environ();
1816
1822
#else
-#if TARGET_OS_BSD || TARGET_OS_WASI
1823
+#if TARGET_OS_BSD
1824
extern char **environ;
1825
1826
return environ;
0 commit comments