fixed for minix, which does not have ftime
authorceriel <none@none>
Tue, 24 Oct 1989 10:04:35 +0000 (10:04 +0000)
committerceriel <none@none>
Tue, 24 Oct 1989 10:04:35 +0000 (10:04 +0000)
lang/cem/libcc/gen/tzset.c

index 5fb3e80..cdb60bd 100644 (file)
@@ -40,12 +40,17 @@ tzset()
        __daylight = tzon.tz_dsttime;
 #else
 #ifndef __USG
+#if minix || minixST
+       __timezone = 0L;
+       __daylight = 0;
+#else
        struct timeb time;
 
        ftime(&time);
        __timezone = time.timezone*60L;
        __daylight = time.dstflag;
 #endif
+#endif
 #endif
 
        {