Skip to content

Commit d51c92f

Browse files
authored
Merge pull request swiftlang#20398 from compnerd/winix
stdlib: conditionalise unistd.h
2 parents adba153 + 8b4c14b commit d51c92f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

stdlib/public/stubs/LibcShims.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@
2323

2424
#include <stdio.h>
2525
#include <sys/types.h>
26+
#if defined(__unix__) || (defined(__APPLE__) && defined(__MACH__))
2627
#include <unistd.h>
28+
#endif
2729

2830
#include <type_traits>
2931

0 commit comments

Comments
 (0)