SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
20
cad/abc/patches/patch-src_base_main_mainReal_c
Normal file
20
cad/abc/patches/patch-src_base_main_mainReal_c
Normal 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;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue