[commit: base] master: Fix an FFI decl: it should have been using capi but was using ccall (d9b24c6)
Ian Lynagh
igloo at earth.li
Wed Feb 22 14:30:20 CET 2012
Repository : ssh://darcs.haskell.org//srv/darcs/packages/base
On branch : master
http://hackage.haskell.org/trac/ghc/changeset/d9b24c62a9083344ce597ea4e575ab7afcbfd0ab
>---------------------------------------------------------------
commit d9b24c62a9083344ce597ea4e575ab7afcbfd0ab
Author: Ian Lynagh <igloo at earth.li>
Date: Wed Feb 22 01:46:30 2012 +0000
Fix an FFI decl: it should have been using capi but was using ccall
>---------------------------------------------------------------
System/Posix/Internals.hs | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/System/Posix/Internals.hs b/System/Posix/Internals.hs
index bc6da74..341e5e3 100644
--- a/System/Posix/Internals.hs
+++ b/System/Posix/Internals.hs
@@ -570,7 +570,7 @@ foreign import ccall unsafe "HsBase.h __hscore_ptr_c_cc" ptr_c_cc :: Ptr CTermi
s_issock :: CMode -> Bool
#if !defined(mingw32_HOST_OS) && !defined(__MINGW32__)
s_issock cmode = c_s_issock cmode /= 0
-foreign import ccall unsafe "sys/stat.h S_ISSOCK" c_s_issock :: CMode -> CInt
+foreign import capi unsafe "sys/stat.h S_ISSOCK" c_s_issock :: CMode -> CInt
#else
s_issock _ = False
#endif
More information about the Cvs-libraries
mailing list