Skip to content

Commit f91a759

Browse files
[wasm] Fix the new CFString.c compilation error on WASI
Treat WASI as an usual Unix-like system
1 parent 164af81 commit f91a759

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/CoreFoundation/CFString.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
#include <stdarg.h>
3636
#include <stdio.h>
3737
#include <string.h>
38-
#if TARGET_OS_MAC || TARGET_OS_LINUX || TARGET_OS_BSD
38+
#if TARGET_OS_MAC || TARGET_OS_LINUX || TARGET_OS_BSD || TARGET_OS_WASI
3939
#include <unistd.h>
4040
#endif
4141
#if TARGET_OS_WASI

0 commit comments

Comments
 (0)