From b4926eb58375fd7bed82379dff88603b79dd1d03 Mon Sep 17 00:00:00 2001 From: lewie Date: Sat, 7 Apr 2001 14:58:44 +0000 Subject: [PATCH] [project @ 2001-04-07 14:58:44 by lewie] Sigh... the moving of the structs.. `struct tm' is only in 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 | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ghc/lib/std/Time.hsc b/ghc/lib/std/Time.hsc index 1ed8a11..d96db3e 100644 --- a/ghc/lib/std/Time.hsc +++ b/ghc/lib/std/Time.hsc @@ -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 # endif -#elif defined(HAVE_TIME_H) +#endif + +#if defined(HAVE_TIME_H) # include #endif -- 1.7.10.4