Commit 4d1ea2c3 authored by Nick Erdmann's avatar Nick Erdmann Committed by Marge Bot

Fix calls to varargs C function fcntl

The ccall calling convention doesn't support varargs functions, so
switch to capi instead. See
https://ghc.gitlab.haskell.org/ghc/doc/users_guide/exts/ffi.html#varargs-not-supported-by-ccall-calling-convention
parent 78629c24
Pipeline #29716 failed with stages
in 888 minutes and 45 seconds
{-# LANGUAGE CApiFFI #-}
{-# LANGUAGE CPP #-}
{-# LANGUAGE InterruptibleFFI #-}
{-# LANGUAGE MultiWayIf #-}
......@@ -40,7 +41,7 @@ import System.Posix.Types (COff, CPid)
-- use ordinary POSIX file locking due to its peculiar semantics under
-- multi-threaded environments.
foreign import ccall interruptible "fcntl"
foreign import capi interruptible "fcntl.h fcntl"
c_fcntl :: CInt -> CInt -> Ptr FLock -> IO CInt
data FLock = FLock { l_type :: CShort
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment