projects
/
ghc-hetmet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[project @ 1998-12-02 13:17:09 by simonm]
[ghc-hetmet.git]
/
ghc
/
lib
/
std
/
cbits
/
timezone.h
diff --git
a/ghc/lib/std/cbits/timezone.h
b/ghc/lib/std/cbits/timezone.h
index
e9b4bda
..
2bfe281
100644
(file)
--- a/
ghc/lib/std/cbits/timezone.h
+++ b/
ghc/lib/std/cbits/timezone.h
@@
-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
#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
#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
@@
-34,10
+46,9
@@
#else /* ! HAVE_TM_ZONE */
# if HAVE_TZNAME || cygwin32_TARGET_OS
#if cygwin32_TARGET_OS
#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
#endif
+extern char *tzname[2];
# define ZONE(x) (((struct tm *)x)->tm_isdst ? tzname[1] : tzname[0])
# define SETZONE(x,z)
# else /* ! HAVE_TZNAME */
# define ZONE(x) (((struct tm *)x)->tm_isdst ? tzname[1] : tzname[0])
# define SETZONE(x,z)
# else /* ! HAVE_TZNAME */