diff options
author | Herbert Valerio Riedel <hvr@gnu.org> | 2016-01-30 19:44:58 +0100 |
---|---|---|
committer | Herbert Valerio Riedel <hvr@gnu.org> | 2016-01-30 19:44:58 +0100 |
commit | 731f7dddcbae3c4332beac742605dade2d4a80ad (patch) | |
tree | 0eac898007723182c50eb09af16f7e720610554e /System/Posix/Process | |
parent | 03783d2758d2f35c01a8570da30f508c3b9e019b (diff) |
Add CTYPE annotations to ptr types used for FFI
This avoids incompatible-pointer warnings from the c-compiler when using
`CApiFFI`
Diffstat (limited to 'System/Posix/Process')
-rw-r--r-- | System/Posix/Process/Common.hsc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/System/Posix/Process/Common.hsc b/System/Posix/Process/Common.hsc index c13bf5e..ee7310e 100644 --- a/System/Posix/Process/Common.hsc +++ b/System/Posix/Process/Common.hsc @@ -212,7 +212,7 @@ getProcessTimes = do childSystemTime = cst }) -type CTms = () +data {-# CTYPE "struct tms" #-} CTms foreign import capi unsafe "HsUnix.h times" c_times :: Ptr CTms -> IO CClock |