summaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorAndrew Morton <akpm@digeo.com>2003-06-25 04:21:16 -0700
committerGreg Kroah-Hartman <greg@kroah.com>2003-06-25 04:21:16 -0700
commitb70732efb82eb54ac5bf6fc9132658fab506cfaa (patch)
treee7c2c8d01516857696cfd4b9a5a5c1c09eb35546 /kernel
parent325a282480c24b685b780221e3e463c2894f9efa (diff)
[PATCH] compat_sys_old_getrlimit() depends on
From: David Mosberger <davidm@napali.hpl.hp.com> compat_sys_old_getrlimit() depends on sys_old_getrlimit() and the patch below updates the guarding #ifdef accordingly.
Diffstat (limited to 'kernel')
-rw-r--r--kernel/sys.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/sys.c b/kernel/sys.c
index 757ad048bd8f..2aa8d38eb5ba 100644
--- a/kernel/sys.c
+++ b/kernel/sys.c
@@ -5,6 +5,7 @@
*/
#include <linux/config.h>
+#include <linux/compat.h>
#include <linux/module.h>
#include <linux/mm.h>
#include <linux/utsname.h>
@@ -1220,7 +1221,7 @@ asmlinkage long sys_getrlimit(unsigned int resource, struct rlimit __user *rlim)
? -EFAULT : 0;
}
-#if !defined(__ia64__) && !defined(CONFIG_V850)
+#if defined(COMPAT_RLIM_OLD_INFINITY) || !(defined(CONFIG_IA64) || defined(CONFIG_V850))
/*
* Back compatibility for getrlimit. Needed for some apps.