[tz] [PATCH] Allow use of <direct.h> from Microsoft Windows to fix mkdir() parameters
eggert at cs.ucla.edu
Fri Feb 26 11:39:16 UTC 2016
Ian Abbott wrote:
> This patch makes "private.h" optionally include <direct.h> (and also <io.h>, due
> to MinGW's behavior), controlled by the HAVE_DIRECT_H macro, and defines
> mkdir(path, mode) as macro calling _mkdir(path).
Thanks, I like this better, but better yet let's put this in zic.c since it's
the only file that needs the mkdir substitute.
> There are some warnings about 'tzname' being redeclared without dllimport
> attribute, when compiling zdump.c and localtime.c
We should be able to fix this by not redeclaring tzname. How about the attached
patch? I've installed it in the experimental repository on GitHub. It also tries
to fix the link/symlink problem you mentioned in your other email. It takes a
somewhat more-ambitious approach, in an attempt to fix some longstanding minor
glitches on POSIX hosts too, while we're at it.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 9809 bytes
Desc: not available
More information about the tz