SecBSD's official ports repository

This commit is contained in:
purplerain 2023-08-16 22:26:55 +00:00
commit 2c0afcbbf3
Signed by: purplerain
GPG key ID: F42C07F07E2E35B7
64331 changed files with 5339189 additions and 0 deletions

View file

@ -0,0 +1,20 @@
Index: src/base/main/mainReal.c
--- src/base/main/mainReal.c.orig
+++ src/base/main/mainReal.c
@@ -139,7 +139,16 @@ int Abc_RealMain( int argc, char * argv[] )
maxMb * (1llu << 20), /* soft limit */
maxMb * (1llu << 20) /* hard limit */
};
+#ifndef __OpenBSD__
setrlimit(RLIMIT_AS, &limit);
+#else
+ /*
+ * OpenBSD doesn't support RLIMIT_AS:
+ * choosing RLIMIT_DATA as the closest match
+ * (see e.g.: https://github.com/OSGeo/gdal/issues/1163)
+ */
+ setrlimit(RLIMIT_DATA, &limit);
+#endif
#endif
break;
}