[project @ 1998-12-02 13:17:09 by simonm]
[ghc-hetmet.git] / ghc / lib / std / cbits / timezone.h
index e9b4bda..2bfe281 100644 (file)
@@ -1,8 +1,20 @@
+/* 
+ * (c) The GRASP/AQUA Project, Glasgow University, 1994-1998
+ *
+ * $Id: timezone.h,v 1.3 1998/12/02 13:28:01 simonm Exp $
+ *
+ * Time-zone support header
+ */
+
 #ifndef TIMEZONE_H
 #define TIMEZONE_H
 
 #define _OSF_SOURCE
 
+#if HAVE_SYS_TYPES_H
+# include <sys/types.h>
+#endif
+
 #if linux_TARGET_OS
 /* Sigh, RedHat 5 has the TM_ZONE stuff, but only when _BSD_SOURCE is
  * on.  The configure script erroneously says we've got TM_ZONE, so
 #else /* ! HAVE_TM_ZONE */
 # if HAVE_TZNAME || cygwin32_TARGET_OS
 #if cygwin32_TARGET_OS
-extern char *tzname;
-#else
-extern char *tzname[2];
+#define tzname _tzname
 #endif
+extern char *tzname[2];
 #  define ZONE(x)       (((struct tm *)x)->tm_isdst ? tzname[1] : tzname[0])
 #  define SETZONE(x,z)
 # else /* ! HAVE_TZNAME */