From 5e5858bf97e28ab8e9c8fc4361890e41bd6f1d6b Mon Sep 17 00:00:00 2001 From: simonmar Date: Tue, 30 Jan 2001 10:59:04 +0000 Subject: [PATCH] [project @ 2001-01-30 10:59:04 by simonmar] put sys/types.h and sys/timeb.h includes under their own #ifdefs, instead of all under HAVE_WINDOWS_H. --- ghc/lib/std/Time.hsc | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/ghc/lib/std/Time.hsc b/ghc/lib/std/Time.hsc index f687944..2dd89d0 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.8 2001/01/26 17:51:54 rrt Exp $ +-- $Id: Time.hsc,v 1.9 2001/01/30 10:59:04 simonmar Exp $ -- -- (c) The University of Glasgow, 1995-2001 -- @@ -104,12 +104,18 @@ module Time # include #endif -#ifdef HAVE_WINDOWS_H -#include +#ifdef HAVE_SYS_TYPES_H #include +#endif + +#ifdef HAVE_SYS_TIMEB_H #include #endif +#ifdef HAVE_WINDOWS_H +#include +#endif + import Ix import Locale -- 1.7.10.4