--- a/Unix.st Sat Dec 23 12:02:57 1995 +0100
+++ b/Unix.st Sat Dec 23 12:10:30 1995 +0100
@@ -4478,6 +4478,12 @@
struct tm *gmTmPtr;
long t;
+#ifdef ultrix /* mhmh - isnt this ifdef BSD ? */
+# define TIMEZONE tmPtr->tm_gmtoff
+#else
+# define TIMEZONE timezone
+#endif
+
if (__bothSmallInteger(low, hi)) {
t = (_intVal(hi) << 16) | _intVal(low);
tmPtr = localtime(&t);
@@ -4491,13 +4497,13 @@
if (tmPtr->tm_isdst == 0) {
dst = false;
- utcOffset = _MKSMALLINT(timezone);
+ utcOffset = _MKSMALLINT(TIMEZONE);
} else {
dst = true;
#ifdef HAS_ALTZONE
utcOffset = _MKSMALLINT(altzone);
#else
- utcOffset = _MKSMALLINT(timezone) + 3600;
+ utcOffset = _MKSMALLINT(TIMEZONE) + 3600;
#endif
}
}
@@ -5370,6 +5376,6 @@
!OperatingSystem class methodsFor:'documentation'!
version
- ^ '$Header: /cvs/stx/stx/libbasic/Attic/Unix.st,v 1.107 1995-12-23 11:02:57 cg Exp $'
+ ^ '$Header: /cvs/stx/stx/libbasic/Attic/Unix.st,v 1.108 1995-12-23 11:10:30 cg Exp $'
! !
OperatingSystem initialize!