From c0319be8f5e87450d6658256faccb6e93eb9a65c Mon Sep 17 00:00:00 2001 From: Aki Tuomi Date: Fri, 18 Jul 2014 08:50:58 +0300 Subject: [PATCH] YaHTTP upgrade from upstream --- pdns/ext/yahttp/yahttp/utility.hpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/pdns/ext/yahttp/yahttp/utility.hpp b/pdns/ext/yahttp/yahttp/utility.hpp index 0242fbb8fb..dcd52077d9 100644 --- a/pdns/ext/yahttp/yahttp/utility.hpp +++ b/pdns/ext/yahttp/yahttp/utility.hpp @@ -49,18 +49,16 @@ namespace YaHTTP { struct tm *tm; tm = localtime(&t); fromTm(tm); -# ifndef HAVE_TM_GMTOFF +#endif +#ifndef HAVE_TM_GMTOFF time_t t2; -# ifdef HAVE_LOCALTIME_R +# ifdef HAVE_LOCALTIME_R gmtime_r(&t, &tm); t2 = mktime(&tm); -# else +# else tm = gmtime(&t); t2 = mktime(tm); -# endif # endif -#endif -#ifndef HAVE_TM_GMTOFF this->utc_offset = ((t2-t)/10)*10; // removes any possible differences. #endif }; //