From 47649afc5b6bc84276484a5fbe21f9ca2708be26 Mon Sep 17 00:00:00 2001 From: rdb Date: Tue, 22 Jun 2010 07:25:33 +0000 Subject: [PATCH] Let's not use the non-standard timegm() even if __GNUC__ is defined --- panda/src/downloader/httpDate.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/panda/src/downloader/httpDate.cxx b/panda/src/downloader/httpDate.cxx index 71efb7ba66..fd9d01e8ed 100644 --- a/panda/src/downloader/httpDate.cxx +++ b/panda/src/downloader/httpDate.cxx @@ -210,7 +210,10 @@ HTTPDate(const string &format) { } // Everything checks out; convert the date. -#ifdef __GNUC__ + // rdb made this an #if 0 check as timegm is a nonstandard extension + // so it fails in some situations even if the compiler defines __GNUC__ +#if 0 + _time = timegm(&t); #else // __GNUC__