diff options
Diffstat (limited to 'www/seamonkey/patches/patch-av')
-rw-r--r-- | www/seamonkey/patches/patch-av | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/www/seamonkey/patches/patch-av b/www/seamonkey/patches/patch-av deleted file mode 100644 index bc49cf16e6c..00000000000 --- a/www/seamonkey/patches/patch-av +++ /dev/null @@ -1,40 +0,0 @@ -$NetBSD: patch-av,v 1.8 2013/01/07 21:55:30 ryoon Exp $ - ---- mozilla/xulrunner/app/nsXULRunnerApp.cpp.orig 2012-11-18 10:19:54.000000000 +0000 -+++ mozilla/xulrunner/app/nsXULRunnerApp.cpp -@@ -6,6 +6,27 @@ - #include "nsXPCOMGlue.h" - #include <stdio.h> - #include <stdlib.h> -+#include <sys/resource.h> -+/* -+ * On netbsd-4, ulimit -n is 64 by default; too few for us. -+ */ -+static void netbsd_fixrlimit(void) { -+ struct rlimit rlp; -+ if (getrlimit(RLIMIT_NOFILE, &rlp) == -1) { -+ fprintf(stderr, "warning: getrlimit failed\n"); -+ return; -+ } -+ if (rlp.rlim_cur >= 512) -+ return; -+ if (rlp.rlim_max < 512) { -+ fprintf(stderr, "warning: hard limit of 'ulimit -n' too low\n"); -+ rlp.rlim_cur = rlp.rlim_max; -+ } -+ else -+ rlp.rlim_cur = 512; -+ if (setrlimit(RLIMIT_NOFILE, &rlp) == -1) -+ fprintf(stderr, "warning: setrlimit failed\n"); -+} - #ifdef XP_WIN - #include <windows.h> - #define snprintf _snprintf -@@ -251,6 +272,7 @@ private: - - int main(int argc, char* argv[]) - { -+ netbsd_fixrlimit(); - char exePath[MAXPATHLEN]; - nsresult rv = mozilla::BinaryPath::Get(argv[0], exePath); - if (NS_FAILED(rv)) { |