diff options
author | 2008-05-20 16:20:48 +0000 | |
---|---|---|
committer | 2008-05-20 16:20:48 +0000 | |
commit | ee9bbce02746792fd8b5defdf319d94d9708962b (patch) | |
tree | 9d1017096429ae4684a01cb725e86c9806b1ee24 /System | |
parent | ad8b242b314171f3bfde528f498c375688e8ba28 (diff) |
Use the C wrappers for [gs]etrlimit
This is for #2038: macros are used in the Linux .h includes to redirect
to a 64-bit version when large file support is enabled.
Diffstat (limited to 'System')
-rw-r--r-- | System/Posix/Resource.hsc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/System/Posix/Resource.hsc b/System/Posix/Resource.hsc index c17707e..067e5df 100644 --- a/System/Posix/Resource.hsc +++ b/System/Posix/Resource.hsc @@ -59,10 +59,10 @@ data ResourceLimit type RLimit = () -foreign import ccall unsafe "getrlimit" +foreign import ccall unsafe "HsBase.h __hscore_getrlimit" c_getrlimit :: CInt -> Ptr RLimit -> IO CInt -foreign import ccall unsafe "setrlimit" +foreign import ccall unsafe "HsBase.h __hscore_setrlimit" c_setrlimit :: CInt -> Ptr RLimit -> IO CInt getResourceLimit :: Resource -> IO ResourceLimits |