aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2006-02-03 02:35:25 +0000
committerrsc <devnull@localhost>2006-02-03 02:35:25 +0000
commit9cfbc441e736b579cc6d9c4369895a9b5c34a7c0 (patch)
treec6b73ec1ab37a790d4e9a9c5a5587bc9c26dec8b /src
parent387ae1dbb89dba0fc03ba5210b90bbde70a8cb86 (diff)
downloadplan9port-9cfbc441e736b579cc6d9c4369895a9b5c34a7c0.tar.gz
plan9port-9cfbc441e736b579cc6d9c4369895a9b5c34a7c0.tar.bz2
plan9port-9cfbc441e736b579cc6d9c4369895a9b5c34a7c0.zip
hmm...
Diffstat (limited to 'src')
-rw-r--r--src/lib9/date.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/lib9/date.c b/src/lib9/date.c
index cc97f2ea..5ceeb1b5 100644
--- a/src/lib9/date.c
+++ b/src/lib9/date.c
@@ -6,16 +6,15 @@
#define _HAVETIMEGM 1
#define _HAVETMZONE 1
-#define _HAVETMTZOFF 1
+#define _HAVETMGMTOFF 1
#if defined(__linux__)
# undef _HAVETMZONE
-# undef _HAVETMTZOFF
#elif defined(__sun__)
# undef _HAVETIMEGM
# undef _HAVETMZONE
-# undef _HAVETMTZOFF
+# undef _HAVETMGMTOFF
#endif
@@ -35,7 +34,7 @@ tm2Tm(struct tm *tm, Tm *bigtm)
bigtm->year = tm->tm_year;
bigtm->wday = tm->tm_wday;
strftime(bigtm->zone, sizeof bigtm->zone, "%Z", tm);
-#ifdef _HAVETZOFF
+#ifdef _HAVETMGMTOFF
bigtm->tzoff = tm->tm_gmtoff;
#endif
@@ -62,7 +61,7 @@ Tm2tm(Tm *bigtm, struct tm *tm)
#ifdef _HAVETMZONE
tm->tm_zone = bigtm->zone;
#endif
-#ifdef _HAVETZOFF
+#ifdef _HAVETMGMTOFF
tm->tm_gmtoff = bigtm->tzoff;
#endif
}