diff options
author | simonm <unknown> | 1998-12-02 13:32:30 +0000 |
---|---|---|
committer | simonm <unknown> | 1998-12-02 13:32:30 +0000 |
commit | 438596897ebbe25a07e1c82085cfbc5bdb00f09e (patch) | |
tree | da7a441396aed2e13f6e0cc55282bf041b0cf72c /ghc/lib/std/cbits/timezone.h | |
parent | 967cc47f37cb93a5e2b6df7822c9a646f0428247 (diff) | |
download | haskell-438596897ebbe25a07e1c82085cfbc5bdb00f09e.tar.gz |
[project @ 1998-12-02 13:17:09 by simonm]
Move 4.01 onto the main trunk.
Diffstat (limited to 'ghc/lib/std/cbits/timezone.h')
-rw-r--r-- | ghc/lib/std/cbits/timezone.h | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/ghc/lib/std/cbits/timezone.h b/ghc/lib/std/cbits/timezone.h index e9b4bdaf38..2bfe281522 100644 --- 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 +#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 @@ -34,10 +46,9 @@ #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 */ |