mhmh - more ultrix kludges
authorClaus Gittinger <cg@exept.de>
Sat, 23 Dec 1995 12:10:30 +0100
changeset 811 6fbd6e7fdb74
parent 810 9b3676f51220
child 812 00db9c0646fe
mhmh - more ultrix kludges
Unix.st
--- 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!