X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=sbr%2Fdtime.c;h=14359557723ac3328ec09b1179ebc572d10da182;hp=e485dfd8cf6981a1d5e02a0871acd3171a0ac377;hb=07f336c16bdb2316c0e32debb3c7ed2e5a89e49a;hpb=6c42153ad9362cc676ea66563bf400d7511b3b68 diff --git a/sbr/dtime.c b/sbr/dtime.c index e485dfd..1435955 100644 --- a/sbr/dtime.c +++ b/sbr/dtime.c @@ -13,7 +13,7 @@ #include #include -#if !defined(HAVE_TM_GMTOFF) && !defined(HAVE_TZSET) +#if !defined(HAVE_STRUCT_TM_TM_GMTOFF) && !defined(HAVE_TZSET) # include #endif @@ -28,7 +28,7 @@ # endif #endif -#if !defined(HAVE_TM_GMTOFF) && defined(HAVE_TZSET) +#if !defined(HAVE_STRUCT_TM_TM_GMTOFF) && defined(HAVE_TZSET) extern int daylight; extern long timezone; extern char *tzname[]; @@ -142,7 +142,7 @@ dlocaltime (time_t *clock) static struct tws tw; struct tm *tm; -#if !defined(HAVE_TM_GMTOFF) && !defined(HAVE_TZSET) +#if !defined(HAVE_STRUCT_TM_TM_GMTOFF) && !defined(HAVE_TZSET) struct timeb tb; #endif @@ -169,7 +169,7 @@ dlocaltime (time_t *clock) if (tm->tm_isdst) tw.tw_flags |= TW_DST; -#ifdef HAVE_TM_GMTOFF +#ifdef HAVE_STRUCT_TM_TM_GMTOFF tw.tw_zone = tm->tm_gmtoff / 60; if (tm->tm_isdst) /* if DST is in effect */ tw.tw_zone -= 60; /* reset to normal offset */