summaryrefslogtreecommitdiff
path: root/sys/compat/linux/common/linux_misc.h
diff options
context:
space:
mode:
authorjoerg <joerg@NetBSD.org>2012-09-22 22:34:02 +0000
committerjoerg <joerg@NetBSD.org>2012-09-22 22:34:02 +0000
commitb09e7941671dafbf0049482ecf21204d43018cbe (patch)
treea18640c333cdd0989a8d8b4b745098e8b6c18d22 /sys/compat/linux/common/linux_misc.h
parentf77b811b5d2c555d2612bafbb9b5bf28ce66054c (diff)
LINUX_RLIM_INFINITY doesn't fit into the value range for linux32, so
introduce a variant with correct value.
Diffstat (limited to 'sys/compat/linux/common/linux_misc.h')
-rw-r--r--sys/compat/linux/common/linux_misc.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/compat/linux/common/linux_misc.h b/sys/compat/linux/common/linux_misc.h
index 3ed0a937689..7cc721e8d31 100644
--- a/sys/compat/linux/common/linux_misc.h
+++ b/sys/compat/linux/common/linux_misc.h
@@ -1,4 +1,4 @@
-/* $NetBSD: linux_misc.h,v 1.22 2012/09/13 13:59:33 pooka Exp $ */
+/* $NetBSD: linux_misc.h,v 1.23 2012/09/22 22:34:02 joerg Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -78,8 +78,10 @@ struct linux_sysinfo {
#define LINUX_RLIMIT_LOCKS 10
#ifdef __mips__ /* XXX only mips32. On mips64, it's ~0ul */
#define LINUX_RLIM_INFINITY 0x7fffffffUL
+#define LINUX32_RLIM_INFINITY 0x7fffffffU
#else
#define LINUX_RLIM_INFINITY ~0ul
+#define LINUX32_RLIM_INFINITY ~0u
#endif