[asterisk-commits] tilghman: trunk r43658 - /trunk/res/res_limit.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Tue Sep 26 09:28:02 MST 2006


Author: tilghman
Date: Tue Sep 26 11:28:01 2006
New Revision: 43658

URL: http://svn.digium.com/view/asterisk?rev=43658&view=rev
Log:
These three are not defined on all platforms that we support

Modified:
    trunk/res/res_limit.c

Modified: trunk/res/res_limit.c
URL: http://svn.digium.com/view/asterisk/trunk/res/res_limit.c?rev=43658&r1=43657&r2=43658&view=diff
==============================================================================
--- trunk/res/res_limit.c (original)
+++ trunk/res/res_limit.c Tue Sep 26 11:28:01 2006
@@ -35,11 +35,13 @@
 	{ RLIMIT_DATA, "-d", "program data segment" },
 	{ RLIMIT_STACK, "-s", "program stack size" },
 	{ RLIMIT_CORE, "-c", "core file size" },
+#ifdef RLIMIT_RSS
 	{ RLIMIT_RSS, "-m", "resident memory" },
+	{ RLIMIT_NPROC, "-u", "number of processes" },
+	{ RLIMIT_MEMLOCK, "-l", "amount of memory locked into RAM" },
+#endif
 	{ RLIMIT_NOFILE, "-n", "number of file descriptors" },
 	{ RLIMIT_AS, "-v", "virtual memory" },
-	{ RLIMIT_NPROC, "-u", "number of processes" },
-	{ RLIMIT_MEMLOCK, "-l", "amount of memory locked into RAM" },
 };
 
 static int str2limit(const char *string)



More information about the asterisk-commits mailing list