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

Reply via email to