aboutsummaryrefslogtreecommitdiffhomepage
path: root/System/Posix/Resource.hsc
diff options
context:
space:
mode:
authorGravatar Herbert Valerio Riedel <hvr@gnu.org>2016-01-30 19:44:58 +0100
committerGravatar Herbert Valerio Riedel <hvr@gnu.org>2016-01-30 19:44:58 +0100
commit731f7dddcbae3c4332beac742605dade2d4a80ad (patch)
tree0eac898007723182c50eb09af16f7e720610554e /System/Posix/Resource.hsc
parent03783d2758d2f35c01a8570da30f508c3b9e019b (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/Resource.hsc')
-rw-r--r--System/Posix/Resource.hsc2
1 files changed, 1 insertions, 1 deletions
diff --git a/System/Posix/Resource.hsc b/System/Posix/Resource.hsc
index 4c5ca48..280c25f 100644
--- a/System/Posix/Resource.hsc
+++ b/System/Posix/Resource.hsc
@@ -55,7 +55,7 @@ data ResourceLimit
| ResourceLimit Integer
deriving Eq
-type RLimit = ()
+data {-# CTYPE "struct rlimit" #-} RLimit
foreign import ccall unsafe "HsUnix.h __hscore_getrlimit"
c_getrlimit :: CInt -> Ptr RLimit -> IO CInt