mingw, head, use of sleep in utils/prof/cgprof/main.c?
claus.reinke at talk21.com
Sat Nov 19 17:47:00 EST 2005
looks like a recent change (August) in a library that translates
calls to some "names" to "_names":
----- Original Message -----
From: "Claus Reinke" <claus.reinke at talk21.com>
To: <cvs-ghc at haskell.org>
Sent: Friday, November 18, 2005 9:10 PM
Subject: mingw, head, use of sleep in utils/prof/cgprof/main.c?
> while trying to update my copy of cvs head (mingw/cygwin/winxp),
> configure complained about needing a newer ld, so I updated my
> mingw installation. the build is running along now, but I ran into
> a problem with old code in utils/prof/cgprof/main.c, which uses
> "sleep", which doesn't really seem to exist under windows.
> mingw provides _sleep (stdlib.h) and Sleep (winbase.h), and the
> former seems deprecated, according to comments. compare
> (the workaround seems to be to define sleep as Sleep or _sleep,
> with a factor of 1000, when under windows).
> the issue seems an old one, so I don't know why this ever compiled
> (perhaps mingw implicitly linked sleep to _sleep, and dropped that
> support in newer versions?)?
> Cvs-ghc mailing list
> Cvs-ghc at haskell.org
More information about the Cvs-ghc