]> granicus.if.org Git - sudo/commitdiff
HP-UX 9.x has RLIMIT_* but no RLIM_INFINITY. If there is no
authorTodd C. Miller <Todd.Miller@courtesan.com>
Fri, 25 Jan 2002 18:38:22 +0000 (18:38 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Fri, 25 Jan 2002 18:38:22 +0000 (18:38 +0000)
RLIM_INFINITY, just pretend it is -1.  This works because we only
check for RLIM_INFINITY and do not set anything to that value.

compat.h

index 5ecc83734b2d86b21cc3e5f4095bfc1918566e92..57241b3a31da185ff7cc8ef2dd796f122268f28d 100644 (file)
--- a/compat.h
+++ b/compat.h
@@ -245,4 +245,12 @@ typedef struct sigaction sigaction_t;
 # endif
 #endif
 
+/*
+ * HP-UX 9.x has RLIMIT_* but no RLIM_INFINITY.
+ * Using -1 works because we only check for RLIM_INFINITY and do not set it.
+ */
+#ifndef RLIM_INFINITY
+# define RLIM_INFINITY (-1)
+#endif
+
 #endif /* _SUDO_COMPAT_H */