[tz] [PATCH] Allow use of <direct.h> from Microsoft Windows to fix mkdir() parameters

Paul Eggert eggert at cs.ucla.edu
Fri Feb 26 17:06:08 UTC 2016


On 02/26/2016 06:11 AM, Ian Abbott wrote:
> It builds in a MinGW-w64 Win32 or Win64 environment with the following 
> command line:
>
> make CFLAGS="-DHAVE_SYS_WAIT_H=0 -DHAVE_DIRECT_H=1 -DHAVE_SYMLINK=0 
> -DHAVE_LINK=0 -DHAVE_LOCALTIME_R=0 -DHAVE_POSIX_DECLS=0"
>

Thanks, but why is the -DHAVE_POSIX_DECLS=0 argument needed? I was 
hoping that HAVE_POSIX_DECLS could have the default value under MS-Windows.

> I still get the warnings about the dllimport attribute on 'tzname'. 

Sorry, I forgot to avoid redefinition of tzname. Fixed in the attached 
patch, which I've installed on GitHub. This still assumes you're 
compiling without setting HAVE_POSIX_DECLS, though, so possibly we need 
further changes.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Fix-tzname-redefinition-in-MS-Windows.patch
Type: application/x-patch
Size: 2490 bytes
Desc: not available
URL: <http://mm.icann.org/pipermail/tz/attachments/20160226/8bd8999b/0001-Fix-tzname-redefinition-in-MS-Windows.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-NEWS-Mention-MinGW.patch
Type: application/x-patch
Size: 703 bytes
Desc: not available
URL: <http://mm.icann.org/pipermail/tz/attachments/20160226/8bd8999b/0002-NEWS-Mention-MinGW.patch>


More information about the tz mailing list