From: simonmar Date: Fri, 2 Dec 2005 12:45:16 +0000 (+0000) Subject: [project @ 2005-12-02 12:45:16 by simonmar] X-Git-Tag: final_switch_to_darcs,_this_repo_is_now_live~106 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=8f7a1098a85839c7c48a0bd877e65d3a7223dada;p=ghc-hetmet.git [project @ 2005-12-02 12:45:16 by simonmar] Fix Windows build Patch submitted by: Esa Ilari Vuokko --- diff --git a/ghc/utils/prof/cgprof/main.c b/ghc/utils/prof/cgprof/main.c index 3b758d1..afa8fbe 100644 --- a/ghc/utils/prof/cgprof/main.c +++ b/ghc/utils/prof/cgprof/main.c @@ -1,5 +1,5 @@ /* ------------------------------------------------------------------------ - * $Id: main.c,v 1.3 2004/08/13 13:11:23 simonmar Exp $ + * $Id: main.c,v 1.4 2005/12/02 12:45:16 simonmar Exp $ * * Copyright (C) 1995-2000 University of Oxford * @@ -33,6 +33,12 @@ #include "matrix.h" #include "daVinci.h" +#if HAVE_WINDOWS_H +#include +#define sleep(x) Sleep((x)*1000) +#endif + + #define NoDeletes 80 int CriticalPath=CRITICAL_SYNCS;