Index: configure.ac ================================================================== --- configure.ac +++ configure.ac @@ -475,24 +475,10 @@ ]) AC_CHECK_FUNC(localtime_r, [ AC_DEFINE(HAVE_LOCALTIME_R, 1, [Whether we have localtime_r]) ]) -AC_MSG_CHECKING(for tm_gmtoff in struct tm) -AC_TRY_COMPILE([ - #define _GNU_SOURCE - #include -], [ - struct tm tm; - tm.tm_gmtoff = 0; -], [ - AC_DEFINE(STRUCT_TM_HAS_TM_GMTOFF, 1, [Whether struct tm has tm_gmtoff]) - AC_MSG_RESULT(yes) -], [ - AC_MSG_RESULT(no) -]) - AC_CHECK_FUNC(kqueue, [ AC_DEFINE(HAVE_KQUEUE, 1, [Whether we have kqueue]) AC_SUBST(OFSTREAMOBSERVER_KQUEUE_M, "OFStreamObserver_kqueue.m") ]) AC_CHECK_HEADER(poll.h, [ Index: src/OFDate.m ================================================================== --- src/OFDate.m +++ src/OFDate.m @@ -248,16 +248,10 @@ if (of_strptime([string UTF8String], [format UTF8String], &tm) == NULL) @throw [OFInvalidFormatException exceptionWithClass: isa]; -#ifdef STRUCT_TM_HAS_TM_GMTOFF - if (tm.tm_gmtoff != 0) - @throw [OFInvalidFormatException - exceptionWithClass: isa]; -#endif - /* Years */ seconds = (int64_t)(tm.tm_year - 70) * 31536000; /* Days of leap years, excluding the year to look at */ seconds += (((tm.tm_year + 1899) / 4) - 492) * 86400; seconds -= (((tm.tm_year + 1899) / 100) - 19) * 86400;