summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2000-11-06 22:05:12 +0000
committerRalf Baechle <ralf@linux-mips.org>2000-11-06 22:05:12 +0000
commitc8f5327cdff270efc6dbbf50e5e3051a1ecec46f (patch)
tree8650e095698bac179858c783f9be48247c535524 /include
parent19b79797b8f66344f77b8b4098acf7ea548da662 (diff)
Define RLIM_INFINITY only when building a kernel.
Diffstat (limited to 'include')
-rw-r--r--include/asm-mips/resource.h4
-rw-r--r--include/asm-mips64/resource.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/include/asm-mips/resource.h b/include/asm-mips/resource.h
index 718e983e6..127729ca2 100644
--- a/include/asm-mips/resource.h
+++ b/include/asm-mips/resource.h
@@ -26,14 +26,14 @@
#define RLIM_NLIMITS 11 /* Number of limit flavors. */
+#ifdef __KERNEL__
+
/*
* SuS says limits have to be unsigned.
* Which makes a ton more sense anyway.
*/
#define RLIM_INFINITY 0x7fffffffUL
-#ifdef __KERNEL__
-
#define INIT_RLIMITS \
{ \
{ RLIM_INFINITY, RLIM_INFINITY }, \
diff --git a/include/asm-mips64/resource.h b/include/asm-mips64/resource.h
index 448a8bb3a..cb3699259 100644
--- a/include/asm-mips64/resource.h
+++ b/include/asm-mips64/resource.h
@@ -27,14 +27,14 @@
#define RLIM_NLIMITS 11 /* Number of limit flavors. */
+#ifdef __KERNEL__
+
/*
* SuS says limits have to be unsigned.
* Which makes a ton more sense anyway.
*/
#define RLIM_INFINITY (~0UL)
-#ifdef __KERNEL__
-
#define INIT_RLIMITS \
{ \
{ RLIM_INFINITY, RLIM_INFINITY }, \