openbsd-ports/lang/apl/patches/patch-src_Common_cc
bcallah 20f6262495 Import lang/apl, an interpreter for the programming language APL.
From Giuseppe Cocomazzi <sbudella AT gmail DOT com>, who takes MAINTAINER,
thanks!
ok ian@

GNU APL is a free interpreter for the programming language APL.

The APL interpreter is an (almost) complete implementation of ISO standard
13751, i.e. Programming Language APL, Extended.

The APL interpreter can be scripted and it implements: nested arrays and
related functions, complex numbers, and a shared variable interface.
2017-09-11 23:44:11 +00:00

16 lines
378 B
Plaintext

$OpenBSD: patch-src_Common_cc,v 1.1.1.1 2017/09/11 23:44:11 bcallah Exp $
--- src/Common.cc.orig Fri Mar 17 15:46:53 2017
+++ src/Common.cc Mon Jul 17 16:37:56 2017
@@ -81,6 +81,11 @@ void
init_1(const char * argv0, bool log_startup)
{
rlimit rl;
+
+#ifndef RLIMIT_AS
+# define RLIMIT_AS RLIMIT_DATA
+#endif
+
getrlimit(RLIMIT_AS, &rl);
total_memory = rl.rlim_cur;