From 3a165b78355788a5c452c5fe77e1bf8164573351 Mon Sep 17 00:00:00 2001 From: joe Date: Wed, 30 Jan 2008 11:53:32 +0000 Subject: * 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 git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1303 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845 --- macros/neon.m4 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'macros') 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 -*- autoconf -*- +# Copyright (C) 1998-2008 Joe Orton -*- autoconf -*- # Copyright (C) 2004 Aleix Conchillo Flaque # # 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 #include ]], -[[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 ]) -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 -- cgit v1.2.1