Skip to content

Commit 7cee2bf

Browse files
committed
Windows: include direct.h in sys.stat module
On Unicies `sys/stat.h` will provide `mkdir`. Windows provides the POSIX requirement through the portable name `_mkdir` which is declared in the `direct.h` header. This adds the additional header to the `ucrt` module to allow access to this function.
1 parent c6bc6f0 commit 7cee2bf

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

stdlib/public/Platform/ucrt.modulemap

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ module ucrt [system] {
9595

9696
module stat {
9797
header "sys/stat.h"
98+
header "direct.h"
9899
export *
99100
}
100101

0 commit comments

Comments
 (0)