lkml.org 
[lkml]   [2003]   [Jun]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: compat_sys_old_getrlimit() depends on sys_old_getrlimit()
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

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:36    [W:1.637 / U:0.008 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site