From 546ae4afeeb66579437126630a46b23eadbe0062 Mon Sep 17 00:00:00 2001 From: simonmar Date: Tue, 8 Mar 2005 16:22:05 +0000 Subject: [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. --- System/Posix/Resource.hsc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'System/Posix/Resource.hsc') 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 -- cgit v1.2.3