Skip to content

Commit f1147f5

Browse files
committed
Fix undefined identifier in WASI
1 parent 5b304bc commit f1147f5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

stdlib/public/Concurrency/TaskGroup.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,10 @@
4949
#include <io.h>
5050
#endif
5151

52+
#if defined(__wasi__)
53+
#include <unistd.h>
54+
#endif
55+
5256
#include <assert.h>
5357
#if SWIFT_CONCURRENCY_ENABLE_DISPATCH
5458
#include <dispatch/dispatch.h>

0 commit comments

Comments
 (0)