From: Matthew Mondor Date: Thu, 27 Aug 2015 18:57:23 +0000 (-0400) Subject: Also verify for HAVE_GETRLIMIT in fix_heap_size(). X-Git-Url: http://git.pulsar-zone.net/?a=commitdiff_plain;h=bff63d371e614853ef4d49cb6a6bbf7f89407fd6;p=ecl.git Also verify for HAVE_GETRLIMIT in fix_heap_size(). --- diff --git a/src/c/main.d b/src/c/main.d index be7272b..cb2db29 100755 --- a/src/c/main.d +++ b/src/c/main.d @@ -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; }