diff options
author | simonmar <unknown> | 2005-03-08 16:22:05 +0000 |
---|---|---|
committer | simonmar <unknown> | 2005-03-08 16:22:05 +0000 |
commit | 546ae4afeeb66579437126630a46b23eadbe0062 (patch) | |
tree | cbcdb8084209fc059ae8194adbec63eede398cf6 | |
parent | 7e37fa9f6e3d38e2705626dfa644caae372d7579 (diff) |
[project @ 2005-03-08 16:22:05 by simonmar]
Undo previous commit: it breaks when RLIM_INFINITY is defined to an
expression that CPP doesn't understand.
-rw-r--r-- | System/Posix/Resource.hsc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/System/Posix/Resource.hsc b/System/Posix/Resource.hsc index 655c585..58b2bfd 100644 --- a/System/Posix/Resource.hsc +++ b/System/Posix/Resource.hsc @@ -93,7 +93,7 @@ packResource ResourceTotalMemory = (#const RLIMIT_AS) unpackRLimit :: CRLim -> ResourceLimit unpackRLimit (#const RLIM_INFINITY) = ResourceLimitInfinity -#if defined(RLIM_SAVED_MAX) && (RLIM_SAVED_MAX != RLIM_INFINITY) +#ifdef RLIM_SAVED_MAX unpackRLimit (#const RLIM_SAVED_MAX) = ResourceLimitUnknown unpackRLimit (#const RLIM_SAVED_CUR) = ResourceLimitUnknown #endif |