From a5ad47418e53afab19d943cce1f01d10d7c23763 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Thu, 28 Apr 2005 15:29:06 +0000 Subject: [PATCH] Maybe include sys/resource.h. Use various RLIMIT_ macros conditionally. For Solaris, Irix and Tru64. git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15001 ec53bebd-3082-4978-b11e-865c3cabbd6b --- appl/login/limits_conf.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/appl/login/limits_conf.c b/appl/login/limits_conf.c index bcbcd6354..ff77acb5e 100644 --- a/appl/login/limits_conf.c +++ b/appl/login/limits_conf.c @@ -37,6 +37,9 @@ RCSID("$Id$"); #include #include +#ifdef HAVE_SYS_RESOURCE_H +#include +#endif struct limit { const char *name; @@ -50,10 +53,16 @@ struct limit { LIM(CPU, 60), LIM(DATA, 1024), LIM(FSIZE, 1024), +#ifdef RLIMIT_LOCK LIM(MEMLOCK, 1024), +#endif LIM(NOFILE, 1), +#ifdef RLIMIT_NPROC LIM(NPROC, 1), +#endif +#ifdef RLIMIT_RSS LIM(RSS, 1024), +#endif LIM(STACK, 1024), #ifdef RLIMIT_AS