[commit: base] master: Fix build on Windows (c533698)
Ian Lynagh
igloo at earth.li
Tue Sep 13 18:17:04 CEST 2011
Repository : ssh://darcs.haskell.org//srv/darcs/packages/base
On branch : master
http://hackage.haskell.org/trac/ghc/changeset/c53369828cfea65bcee4bee0f17593b256c50aaa
>---------------------------------------------------------------
commit c53369828cfea65bcee4bee0f17593b256c50aaa
Author: Ian Lynagh <igloo at earth.li>
Date: Tue Sep 13 16:58:24 2011 +0100
Fix build on Windows
Now hsc2hs's template doesn't include HsFFI.h for us, we have
to do it ourselves.
>---------------------------------------------------------------
System/CPUTime.hsc | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/System/CPUTime.hsc b/System/CPUTime.hsc
index f07b2e4..61ce09f 100644
--- a/System/CPUTime.hsc
+++ b/System/CPUTime.hsc
@@ -15,6 +15,9 @@
--
-----------------------------------------------------------------------------
+#include "HsFFI.h"
+#include "HsBaseConfig.h"
+
module System.CPUTime
(
getCPUTime, -- :: IO Integer
@@ -40,8 +43,6 @@ import Foreign.C
import System.IO.Unsafe (unsafePerformIO)
#endif
-#include "HsBaseConfig.h"
-
-- For _SC_CLK_TCK
#if HAVE_UNISTD_H
#include <unistd.h>
More information about the Cvs-libraries
mailing list