From: sof Date: Mon, 1 Mar 1999 09:04:07 +0000 (+0000) Subject: [project @ 1999-03-01 09:04:07 by sof] X-Git-Tag: Approximately_9120_patches~6492 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=0c82f29febee7ed9a10925d906e719f1b4e801e6;p=ghc-hetmet.git [project @ 1999-03-01 09:04:07 by sof] mingw32 tweaks --- diff --git a/ghc/lib/std/cbits/getCPUTime.c b/ghc/lib/std/cbits/getCPUTime.c index edc5794..2d4e008 100644 --- a/ghc/lib/std/cbits/getCPUTime.c +++ b/ghc/lib/std/cbits/getCPUTime.c @@ -1,7 +1,7 @@ /* * (c) The GRASP/AQUA Project, Glasgow University, 1994-1998 * - * $Id: getCPUTime.c,v 1.3 1998/12/02 13:27:36 simonm Exp $ + * $Id: getCPUTime.c,v 1.4 1999/03/01 09:04:07 sof Exp $ * * getCPUTime Runtime Support */ @@ -25,16 +25,20 @@ #include #endif -#ifdef HAVE_SYS_TIMES_H -#include +#ifndef mingw32_TARGET_OS +# ifdef HAVE_SYS_TIMES_H +# include +# endif #endif #ifdef HAVE_SYS_TIME_H #include #endif -#if defined(HAVE_SYS_RESOURCE_H) && ! irix_TARGET_OS -#include +#if !defined(mingw32_TARGET_OS) && !defined(irix_TARGET_OS) +# if defined(HAVE_SYS_RESOURCE_H) +# include +# endif #endif #ifdef HAVE_SYS_TIMEB_H