X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;ds=sidebyside;f=rts%2Fposix%2FItimer.c;h=c4944aa8a081f7e15a15617e4a0b61334bf07b13;hb=df7dc3fa83d03a0ca903d3cd7d23debe045279cd;hp=8600c0a99cd31061c3db4ab5a66e6d284189120c;hpb=c559d7b34529e75285f78f84687fa8b69bfea6d6;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.