on master help sign in
compile wai-handler-fastcgi on 7.4

still a paths generation issue in warp at the moment

commit3d750a51f4ecd984138b25f006ab35aabe71331b authorGreg Weber <greg@gregweber.info> dateSat 24 Dec 2011, 19:42 (15 years ago) parent73f3eea
2 files changed+8
wai-handler-fastcgi/Network/Wai/Handler/FastCGI.hsc+5 wai-handler-fastcgi/wai-handler-fastcgi.cabal+3
wai-handler-fastcgi/Network/Wai/Handler/FastCGI.hsc+5
@@ -1,5 +1,6 @@
11{-# LANGUAGE ForeignFunctionInterface #-}
22{-# LANGUAGE EmptyDataDecls #-}
3+{-# LANGUAGE CPP #-}
34-----------------------------------------------------------------------------
45-- |
56-- Module : Network.Wai.Handler.FastCGI
@@ -24,7 +25,11 @@ import Control.Monad ( liftM, forever )
2425import Data.Word (Word8)
2526import Foreign ( Ptr, castPtr, nullPtr, peekArray0
2627 , throwIfNeg_, mallocBytes, free )
28+#ifdef GHC_7_4
29+import Foreign.C (CInt(..), CString, CStringLen)
30+#else
2731import Foreign.C (CInt, CString, CStringLen)
32+#endif
2833import Control.Exception (finally)
2934import Foreign.Storable ( Storable (..) )
3035
wai-handler-fastcgi/wai-handler-fastcgi.cabal+3
@@ -22,3 +22,6 @@ library
2222 ghc-options: -Wall
2323 includes: fcgiapp.h
2424 extra-libraries: fcgi
25+
26+ if impl(ghc >= 7.4)
27+ cpp-options: -DGHC_7_4