--- src/cmd/scc-make/posix.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/cmd/scc-make/posix.c b/src/cmd/scc-make/posix.c index 1b966f17..e9b94842 100644 --- a/src/cmd/scc-make/posix.c +++ b/src/cmd/scc-make/posix.c _at_@ -1,4 +1,5 @@ -#define _POSIX_C_SOURCE +#undef _POSIX_C_SOURCE +#define _POSIX_C_SOURCE 200809L #include <signal.h> #include <sys/stat.h> _at_@ -18,7 +19,7 @@ is_dir(char *fname) if (stat(fname, &st) < 0) return 0; - return (st.st_mode & S_IFMT) == S_IFDIR; + return S_ISDIR(st.st_mode); } void -- 2.46.1 -- To unsubscribe send a mail to scc-dev+unsubscribe_at_simple-cc.orgReceived on Mon 10 Mar 2025 - 11:29:09 CET
This archive was generated by hypermail 2.3.0 : Mon 10 Mar 2025 - 11:40:02 CET