[MLton-commit] r4611

Matthew Fluet MLton@mlton.org
Sat, 27 May 2006 05:39:07 -0700


Work around missing RLIMIT_AS.


----------------------------------------------------------------------

U   mlton/branches/on-20050822-x86_64-branch/runtime/basis/MLton/Rlimit/rlimit-consts.c

----------------------------------------------------------------------

Modified: mlton/branches/on-20050822-x86_64-branch/runtime/basis/MLton/Rlimit/rlimit-consts.c
===================================================================
--- mlton/branches/on-20050822-x86_64-branch/runtime/basis/MLton/Rlimit/rlimit-consts.c	2006-05-26 17:29:11 UTC (rev 4610)
+++ mlton/branches/on-20050822-x86_64-branch/runtime/basis/MLton/Rlimit/rlimit-consts.c	2006-05-27 12:39:06 UTC (rev 4611)
@@ -1,6 +1,12 @@
 #include "platform.h"
 
+#if (defined (RLIMIT_AS))
 const C_Int_t MLton_Rlimit_AS = RLIMIT_AS;
+#elif (defined (RLIMIT_DATA))
+const C_Int_t MLton_Rlimit_AS = RLIMIT_DATA;
+#else
+#error MLton_Rlimit_AS not defined
+#endif
 const C_Int_t MLton_Rlimit_CORE = RLIMIT_CORE;
 const C_Int_t MLton_Rlimit_CPU = RLIMIT_CPU;
 const C_Int_t MLton_Rlimit_DATA = RLIMIT_DATA;