Also verify for HAVE_GETRLIMIT in fix_heap_size().
authorMatthew Mondor <mmondor@pulsar-zone.net>
Thu, 27 Aug 2015 18:57:23 +0000 (14:57 -0400)
committerMatthew Mondor <mmondor@pulsar-zone.net>
Thu, 27 Aug 2015 18:57:23 +0000 (14:57 -0400)
src/c/main.d

index be7272b..cb2db29 100755 (executable)
@@ -87,6 +87,7 @@ const char *ecl_self;
 size_t
 fix_heap_size(size_t target)
 {
+#ifdef HAVE_GETRLIMIT
 #ifdef HAVE_SETRLIMIT
         struct rlimit rlp;
 
@@ -119,6 +120,7 @@ fix_heap_size(size_t target)
                 }
         }
 #endif
+#endif
         return target;
 }