Skip to content

Commit de7cd11

Browse files
committed
Fix missing include in CRT.c (sys/stat.h)
Include `<sys/stat.h>` for the umask(2) call. This used to be included indirectly through Compat.h until the commit 3956cff that refactored Compat.h. Build error is reproducible in macOS Tahoe 26.1.
1 parent 6cf1097 commit de7cd11

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

CRT.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ in the source distribution for its full text.
1919
#include <stdlib.h>
2020
#include <string.h>
2121
#include <unistd.h>
22+
#include <sys/stat.h> // IWYU pragma: keep
2223

2324
#include "CommandLine.h"
2425
#include "ProvideCurses.h"

0 commit comments

Comments
 (0)