[project @ 2001-04-07 14:58:44 by lewie]
authorlewie <unknown>
Sat, 7 Apr 2001 14:58:44 +0000 (14:58 +0000)
committerlewie <unknown>
Sat, 7 Apr 2001 14:58:44 +0000 (14:58 +0000)
Sigh... the moving of the structs..  `struct tm' is only in <time.h> on
RedHat 7.1/whatever-version-of-glibc-or-whatever-that-implies.  The following
patch works on RH 6.2, RH 7.0 and RH 7.1.  Your mileage shouldn't vary,
but you know how these things go..

ghc/lib/std/Time.hsc

index 1ed8a11..d96db3e 100644 (file)
@@ -3,7 +3,7 @@
 -- to compile on sparc-solaris.  Blargh.
 
 -- -----------------------------------------------------------------------------
--- $Id: Time.hsc,v 1.10 2001/02/28 00:01:03 qrczak Exp $
+-- $Id: Time.hsc,v 1.11 2001/04/07 14:58:44 lewie Exp $
 --
 -- (c) The University of Glasgow, 1995-2001
 --
@@ -100,7 +100,9 @@ module Time
 #  define POSIX_4D9 1
 #  include <sys/timers.h>
 # endif
-#elif defined(HAVE_TIME_H)
+#endif
+
+#if defined(HAVE_TIME_H)
 # include <time.h>
 #endif