Commit b70732ef authored by Andrew Morton's avatar Andrew Morton Committed by Greg Kroah-Hartman

[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.
parent 325a2824
......@@ -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.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment