diff options
Diffstat (limited to 'devel/xulrunner/patches/patch-ay')
-rw-r--r-- | devel/xulrunner/patches/patch-ay | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/devel/xulrunner/patches/patch-ay b/devel/xulrunner/patches/patch-ay index 51dacdfcd3d..3129de1bfe9 100644 --- a/devel/xulrunner/patches/patch-ay +++ b/devel/xulrunner/patches/patch-ay @@ -1,11 +1,11 @@ -$NetBSD: patch-ay,v 1.1 2009/10/11 10:49:56 tnn Exp $ +$NetBSD: patch-ay,v 1.2 2011/10/03 12:37:24 tnn Exp $ ---- browser/app/nsBrowserApp.cpp.orig 2009-06-29 18:14:40.000000000 +0200 +--- browser/app/nsBrowserApp.cpp.orig 2011-09-22 20:20:17.000000000 +0000 +++ browser/app/nsBrowserApp.cpp -@@ -44,6 +44,27 @@ - +@@ -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. @@ -30,11 +30,11 @@ $NetBSD: patch-ay,v 1.1 2009/10/11 10:49:56 tnn Exp $ #include "plstr.h" #include "prprf.h" -@@ -106,6 +127,7 @@ public: - +@@ -203,6 +224,7 @@ static int do_main(const char *exePath, int main(int argc, char* argv[]) { + char exePath[MAXPATHLEN]; + netbsd_fixrlimit(); - ScopedLogging log; - nsCOMPtr<nsILocalFile> appini; + nsresult rv = mozilla::BinaryPath::Get(argv[0], exePath); + if (NS_FAILED(rv)) { |