Hello Paul I was able to compile everything after adding -DHAVE_GETEUID=0 -DHAVE_GETRESUID=0 -DHAVE_STRUCT_STAT_ST_CTIM=0
Additionally things compiled after removing -DHAVE_INTTYPES_H=0 -DHAVE_STRTOLL=0 I was not able to apply your patch. If you could just commit the cange I can test head revision again. Thank you! On Tue, Oct 21, 2025 at 5:54 PM Paul Eggert <[email protected]> wrote: > On 2025-10-21 06:15, Manuela Friedrich wrote: > > > localtime.c(383): error C2065: 'uid_t': undeclared identifier > > Please compile with these flags too: > > -DHAVE_GETEUID=0 -DHAVE_GETRESUID=0 -DHAVE_STRUCT_STAT_ST_CTIM=0 > > tzcode assumes a POSIX-like platform, and if you're on a non-POSIX > platform you need to use flags telling tzcode which POSIX-required > features are missing. tzcode has long had flags like these, such as the > -DHAVE_INTTYPES_H=0 and -DHAVE_UNISTD_H=0 flags you're already using. > The flags I listed above are new since 2025b; this is documented in the > Makefile. > > By the way, why compile with -DHAVE_INTTYPES_H=0? The Microsoft website > says MS-Windows has <inttypes.h> [1]. I suggest removing that flag. > Similarly, while compile with -DHAVE_STRTOLL=0? [2] > > > PS. Getting back to umask, it looks we'll need it after all, to get a > FreeBSD-like zic -u option to work securely. Please check whether the > attached patch compiles for you. I haven't installed it, but plan to > install something like it soon. > > [1]: > https://learn.microsoft.com/en-us/cpp/c-runtime-library/standard-types > [2]: > > https://learn.microsoft.com/en-us/cpp/c-runtime-library/reference/strtoll-strtoll-l-wcstoll-wcstoll-l
