From cc377b074bb15eccaeccf7dadc3392ee7b8326c5 Mon Sep 17 00:00:00 2001
From: Paul Eggert <eggert@cs.ucla.edu>
Date: Thu, 23 Oct 2025 15:05:06 -0700
Subject: [PROPOSED 2/2] Simplify mkdir situation

This better matches what happens on MS-Windows nowadays.
* zic.c (mode_t) [HAVE_DIRECT_H]: Remove; not used.
(mkdir): Always define as a macro if HAVE_DIRECT_H,
and do not declare if !HAVE_POSIX_DECLS.
---
 zic.c | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/zic.c b/zic.c
index f332c2d9..9a2c0624 100644
--- a/zic.c
+++ b/zic.c
@@ -48,12 +48,7 @@ enum { FORMAT_LEN_GROWTH_BOUND = 5 };
 #ifdef HAVE_DIRECT_H
 # include <direct.h>
 # include <io.h>
-# ifndef mode_t
-#  define mode_t int
-# endif
-# ifndef mkdir
-#  define mkdir(name, mode) _mkdir(name)
-# endif
+# define mkdir(name, mode) _mkdir(name)
 #endif
 
 #ifndef HAVE_GETRANDOM
-- 
2.48.1

