#include <sys/times.h> if we have it (should fix build problems)
authorSimon Marlow <marlowsd@gmail.com>
Mon, 29 Jun 2009 08:53:51 +0000 (08:53 +0000)
committerSimon Marlow <marlowsd@gmail.com>
Mon, 29 Jun 2009 08:53:51 +0000 (08:53 +0000)
System/CPUTime.hsc

index 9dc62db..cb23d93 100644 (file)
@@ -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)