X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=rts%2Fposix%2FItimer.c;h=c4944aa8a081f7e15a15617e4a0b61334bf07b13;hb=0598a001b9d852a044a49f8fb6ab1a6b02a77d9e;hp=8600c0a99cd31061c3db4ab5a66e6d284189120c;hpb=e30aca19def5c629a8429bd57e56535b7f8f85c8;p=ghc-hetmet.git diff --git a/rts/posix/Itimer.c b/rts/posix/Itimer.c index 8600c0a..c4944aa 100644 --- a/rts/posix/Itimer.c +++ b/rts/posix/Itimer.c @@ -67,9 +67,8 @@ * For now, we're using (1), but this needs a better solution. --SDM */ -#if defined(HAVE_TIMER_CREATE) && defined(HAVE_TIMER_SETTIME) +#if defined(USE_TIMER_CREATE) -# define USE_TIMER_CREATE # define ITIMER_SIGNAL SIGVTALRM # ifdef THREADED_RTS # define TIMER_FLAVOUR CLOCK_REALTIME @@ -79,7 +78,6 @@ #elif defined(HAVE_SETITIMER) -# define USE_ITIMER # ifdef THREADED_RTS // Oh dear, we have to use SIGALRM if there's no timer_create and // we're using the THREADED_RTS. This leads to problems, see bug #850.