diff options
author | simonpj <unknown> | 2005-11-28 09:24:17 +0000 |
---|---|---|
committer | simonpj <unknown> | 2005-11-28 09:24:17 +0000 |
commit | 806601e9bf9900f58e2ee1be80ad2ba4d4759be8 (patch) | |
tree | aa14377305af68c3ad85de9a5eb5132a69a3e65c /ghc | |
parent | db18148d1a62abc745da955530d7f46a6f1e9f36 (diff) | |
download | haskell-806601e9bf9900f58e2ee1be80ad2ba4d4759be8.tar.gz |
[project @ 2005-11-28 09:24:17 by simonpj]
Patch from Atrijus alleged to fix FreeBSD build
Diffstat (limited to 'ghc')
-rw-r--r-- | ghc/rts/posix/GetTime.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ghc/rts/posix/GetTime.c b/ghc/rts/posix/GetTime.c index a5fcb21e91..9699774474 100644 --- a/ghc/rts/posix/GetTime.c +++ b/ghc/rts/posix/GetTime.c @@ -113,7 +113,7 @@ void getProcessTimes(Ticks *user, Ticks *elapsed) Ticks getThreadCPUTime(void) { -#ifdef HAVE_CLOCK_GETTIME +#if defined(HAVE_CLOCK_GETTIME) && defined(CLOCK_THREAD_CPUTIME_ID) // clock_gettime() gives us per-thread CPU time. It isn't // reliable on Linux, but it's the best we have. struct timespec ts; |