diff options
author | Simon Marlow <simonmar@microsoft.com> | 2007-03-05 14:36:43 +0000 |
---|---|---|
committer | Simon Marlow <simonmar@microsoft.com> | 2007-03-05 14:36:43 +0000 |
commit | df7dc3fa83d03a0ca903d3cd7d23debe045279cd (patch) | |
tree | 72b8aa50ba1e736d50a0ea90611f1f294a697be1 /rts/posix | |
parent | c559d7b34529e75285f78f84687fa8b69bfea6d6 (diff) | |
download | haskell-df7dc3fa83d03a0ca903d3cd7d23debe045279cd.tar.gz |
better autoconfery for timer_create()
Diffstat (limited to 'rts/posix')
-rw-r--r-- | rts/posix/Itimer.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/rts/posix/Itimer.c b/rts/posix/Itimer.c index 8600c0a99c..c4944aa8a0 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. |