diff options
author | joe <joe@61a7d7f5-40b7-0310-9c16-bb0ea8cb1845> | 2008-01-30 11:53:32 +0000 |
---|---|---|
committer | joe <joe@61a7d7f5-40b7-0310-9c16-bb0ea8cb1845> | 2008-01-30 11:53:32 +0000 |
commit | 3a165b78355788a5c452c5fe77e1bf8164573351 (patch) | |
tree | 8042e379fc17afb9c4164e2604a82d1be23f9160 /macros | |
parent | 91e2d61ccfce54eb0664e79d29b36e8880265a3f (diff) | |
download | neon-3a165b78355788a5c452c5fe77e1bf8164573351.tar.gz |
* src/ne_dates.c (GMTOFF) [HAVE_TIMEZONE]: Add definition.
(all callers of GMTOFF): Separate mktime from GMTOFF invocation to
ensure a sequence point between the two.
* macros/neon.m4 (LIBNEON_SOURCE_CHECKS): Update timezone warning.
Submitted by: Alessandro Vesely <vesely tana.it>
git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1303 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
Diffstat (limited to 'macros')
-rw-r--r-- | macros/neon.m4 | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/macros/neon.m4 b/macros/neon.m4 index d1db932..8e17632 100644 --- a/macros/neon.m4 +++ b/macros/neon.m4 @@ -1,4 +1,4 @@ -# Copyright (C) 1998-2007 Joe Orton <joe@manyfish.co.uk> -*- autoconf -*- +# Copyright (C) 1998-2008 Joe Orton <joe@manyfish.co.uk> -*- autoconf -*- # Copyright (C) 2004 Aleix Conchillo Flaque <aleix@member.fsf.org> # # This file is free software; you may copy and/or distribute it with @@ -600,7 +600,7 @@ AC_REQUIRE([NE_SNPRINTF]) AC_CACHE_CHECK([for timezone global], ne_cv_cc_timezone, [ AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <sys/types.h> #include <time.h>]], -[[time_t t = 0 - timezone;]])], +[[time_t t = 0 - timezone; timezone = 1;]])], ne_cv_cc_timezone=yes, ne_cv_cc_timezone=no)]) if test "$ne_cv_cc_timezone" = "yes"; then @@ -694,7 +694,7 @@ AC_CHECK_TYPES(socklen_t,, AC_CHECK_MEMBERS([struct tm.tm_gmtoff, struct tm.__tm_gmtoff],,, [#include <time.h>]) -if test $ac_cv_member_struct_tm_tm_gmtoff$ac_cv_member_struct_tm___tm_gmtoff = nono; then +if test ${ac_cv_member_struct_tm_tm_gmtoff}${ac_cv_member_struct_tm___tm_gmtoff}${ne_cv_cc_timezone} = nonono; then AC_MSG_WARN([no timezone handling in date parsing on this platform]) fi |