projects
/
ghc-base.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d181127
)
#include <sys/times.h> if we have it (should fix build problems)
author
Simon Marlow
<marlowsd@gmail.com>
Mon, 29 Jun 2009 08:53:51 +0000
(08:53 +0000)
committer
Simon Marlow
<marlowsd@gmail.com>
Mon, 29 Jun 2009 08:53:51 +0000
(08:53 +0000)
System/CPUTime.hsc
patch
|
blob
|
history
diff --git
a/System/CPUTime.hsc
b/System/CPUTime.hsc
index
9dc62db
..
cb23d93
100644
(file)
--- a/
System/CPUTime.hsc
+++ b/
System/CPUTime.hsc
@@
-58,6
+58,11
@@
import Foreign.C
#include <time.h>
#endif
+-- for struct tms
+#if HAVE_SYS_TIMES_H
+#include <sys/times.h>
+#endif
+
#endif
#if !defined(mingw32_HOST_OS) && !defined(cygwin32_HOST_OS)