summaryrefslogtreecommitdiff
path: root/mail/thunderbird10/patches/patch-ay
diff options
context:
space:
mode:
Diffstat (limited to 'mail/thunderbird10/patches/patch-ay')
-rw-r--r--mail/thunderbird10/patches/patch-ay40
1 files changed, 0 insertions, 40 deletions
diff --git a/mail/thunderbird10/patches/patch-ay b/mail/thunderbird10/patches/patch-ay
deleted file mode 100644
index e362e1799fd..00000000000
--- a/mail/thunderbird10/patches/patch-ay
+++ /dev/null
@@ -1,40 +0,0 @@
-$NetBSD: patch-ay,v 1.1.1.1 2012/03/15 09:45:29 ryoon Exp $
-
---- mozilla/browser/app/nsBrowserApp.cpp.orig 2012-02-16 10:24:45.000000000 +0000
-+++ mozilla/browser/app/nsBrowserApp.cpp
-@@ -49,6 +49,27 @@
- #include <stdio.h>
- #include <stdarg.h>
- #include <string.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");
-+}
-
- #include "plstr.h"
- #include "prprf.h"
-@@ -203,6 +224,7 @@ static int do_main(const char *exePath,
- int main(int argc, char* argv[])
- {
- char exePath[MAXPATHLEN];
-+ netbsd_fixrlimit();
-
- nsresult rv = mozilla::BinaryPath::Get(argv[0], exePath);
- if (NS_FAILED(rv)) {