[tz] [PATCH] Allow use of <direct.h> from Microsoft Windows to fix mkdir() parameters
abbotti at mev.co.uk
Sun Feb 28 21:03:41 UTC 2016
On 26/02/2016 20:38, Paul Eggert wrote:
> On 02/26/2016 10:38 AM, Ian Abbott wrote:
>> That's better. It builds with -DHAVE_POSIX_DECLS=1 now, but there are
>> still warnings due to the implicit declaration of 'asctime_r' when
>> compiling "localtime.c"
> OK, thanks, I think we're getting closer. I installed the attached
> patch, which I hope fixes these warnings.
I removed -DHAVE_INCOMPATIBLE_CTIME_R=1, and added
-DHAVE_DECL_ASCTIME_R=0 and -DHAVE_LOCALTIME_R=0 to CFLAGS, and it
builds without warnings. These are the CFLAGS I'm using:
CFLAGS="-DHAVE_SYS_WAIT_H=0 -DHAVE_DIRECT_H=1 -DHAVE_SYMLINK=0
-DHAVE_LINK=0 -DHAVE_DECL_ASCTIME_R=0 -DHAVE_LOCALTIME_R=0"
The "HAVE_DECL_ASCTIME_R" name seems to break the current naming
convention (if there is one) though!
-=( Ian Abbott @ MEV Ltd. E-mail: <abbotti at mev.co.uk> )=-
-=( Web: http://www.mev.co.uk/ )=-
More information about the tz