[PROPOSED] Port to -DHAVE_SYS_STAT_H=0 -DHAVE_POSIX_DECLS=0
Oct. 3, 2025
10:57 p.m.
This is mostly for testing that the code still might work on platforms lacking <sys/stat.h>. * zic.c [!HAVE_POSIX_DECLS && !mkdir]: Declare mkdir. [!HAVE_POSIX_DECLS && S_IWGRP]: Declare umask. --- zic.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/zic.c b/zic.c index e78dfd47..109dbef8 100644 --- a/zic.c +++ b/zic.c @@ -148,6 +148,12 @@ struct zone { extern int getopt(int argc, char * const argv[], const char * options); extern int link(const char * target, const char * linkname); +# ifndef mkdir +extern int mkdir(char const *, mode_t); +# endif +# ifdef S_IWGRP +extern mode_t umask(mode_t); +# endif extern char * optarg; extern int optind; #endif -- 2.48.1
43
Age (days ago)
43
Last active (days ago)
0 comments
1 participants
participants (1)
-
Paul Eggert