compat_sys_old_getrlimit() depends on sys_old_getrlimit() and the patch
below updates the guarding #ifdef accordingly.
--david
===== kernel/sys.c 1.47 vs edited =====
--- 1.47/kernel/sys.c Thu Jun 12 15:53:14 2003
+++ edited/kernel/sys.c Mon Jun 23 16:01:39 2003
@@ -5,6 +5,7 @@
*/
#include <linux/config.h>
+#include <linux/compat.h>
#include <linux/module.h>
#include <linux/mm.h>
#include <linux/utsname.h>
@@ -1219,7 +1220,7 @@
? -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.
On Mon, Jun 23, 2003 at 05:01:18PM -0700, David Mosberger wrote:
> compat_sys_old_getrlimit() depends on sys_old_getrlimit() and the patch
> below updates the guarding #ifdef accordingly.
>
> --david
>
> ===== kernel/sys.c 1.47 vs edited =====
> --- 1.47/kernel/sys.c Thu Jun 12 15:53:14 2003
> +++ edited/kernel/sys.c Mon Jun 23 16:01:39 2003
> @@ -5,6 +5,7 @@
> */
>
> #include <linux/config.h>
> +#include <linux/compat.h>
> #include <linux/module.h>
> #include <linux/mm.h>
> #include <linux/utsname.h>
> @@ -1219,7 +1220,7 @@
> ? -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.
s/||/&&/ ?
cu
Adrian
--
"Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
"Only a promise," Lao Er said.
Pearl S. Buck - Dragon Seed