Skip to content

Commit e60fb30

Browse files
authored
Merge pull request #59365 from kateinoigakukun/katei/fix-single-threaded-build
[stubs] include unistd.h to repair swift-threading-package=none build
2 parents bd5af6b + b3007e5 commit e60fb30

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

stdlib/public/stubs/Random.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@
3939

4040
#endif
4141

42+
#if __has_include(<unistd.h>)
43+
#include <unistd.h>
44+
#endif
45+
4246
#include <stdlib.h>
4347

4448
#include "SwiftShims/Random.h"

0 commit comments

Comments
 (0)