SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
29
graphics/gimp/stable/patches/patch-app_main_c
Normal file
29
graphics/gimp/stable/patches/patch-app_main_c
Normal file
|
@ -0,0 +1,29 @@
|
|||
raise datasize rlimit to max
|
||||
|
||||
Index: app/main.c
|
||||
--- app/main.c.orig
|
||||
+++ app/main.c
|
||||
@@ -17,6 +17,7 @@
|
||||
|
||||
#include "config.h"
|
||||
|
||||
+#include <sys/resource.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
@@ -416,10 +417,15 @@ main (int argc,
|
||||
GFile *user_gimprc_file = NULL;
|
||||
gchar *backtrace_file = NULL;
|
||||
gint i;
|
||||
+ struct rlimit limit;
|
||||
|
||||
#ifdef ENABLE_WIN32_DEBUG_CONSOLE
|
||||
gimp_open_console_window ();
|
||||
#endif
|
||||
+ if (getrlimit (RLIMIT_DATA, &limit) != -1) {
|
||||
+ limit.rlim_cur = limit.rlim_max;
|
||||
+ (void)setrlimit (RLIMIT_DATA, &limit);
|
||||
+ }
|
||||
#if defined(ENABLE_RELOCATABLE_RESOURCES) && defined(__APPLE__)
|
||||
/* remove MacOS session identifier from the command line args */
|
||||
gint newargc = 0;
|
Loading…
Add table
Add a link
Reference in a new issue