projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
db18148
)
[project @ 2005-11-28 09:24:17 by simonpj]
author
simonpj
<unknown>
Mon, 28 Nov 2005 09:24:17 +0000
(09:24 +0000)
committer
simonpj
<unknown>
Mon, 28 Nov 2005 09:24:17 +0000
(09:24 +0000)
Patch from Atrijus alleged to fix FreeBSD build
ghc/rts/posix/GetTime.c
patch
|
blob
|
history
diff --git
a/ghc/rts/posix/GetTime.c
b/ghc/rts/posix/GetTime.c
index
a5fcb21
..
9699774
100644
(file)
--- 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;