head 1.2; access; symbols pkgsrc-2019Q1:1.1.0.18 pkgsrc-2019Q1-base:1.1 pkgsrc-2018Q4:1.1.0.16 pkgsrc-2018Q4-base:1.1 pkgsrc-2018Q3:1.1.0.14 pkgsrc-2018Q3-base:1.1 pkgsrc-2018Q2:1.1.0.12 pkgsrc-2018Q2-base:1.1 pkgsrc-2018Q1:1.1.0.10 pkgsrc-2018Q1-base:1.1 pkgsrc-2017Q4:1.1.0.8 pkgsrc-2017Q4-base:1.1 pkgsrc-2017Q3:1.1.0.6 pkgsrc-2017Q3-base:1.1 pkgsrc-2017Q2:1.1.0.2 pkgsrc-2017Q2-base:1.1; locks; strict; comment @// @; 1.2 date 2019.06.12.18.23.10; author ryoon; state dead; branches; next 1.1; commitid Ccvi5ZUA6DttCVqB; 1.1 date 2017.04.27.13.38.18; author ryoon; state Exp; branches; next ; commitid JyrvbkrB9GSqZaPz; desc @@ 1.2 log @Remove thunderbird45* www/firefox45/mozilla-common.mk is no longer provided. @ text @$NetBSD: patch-mail_app_nsMailApp.cpp,v 1.1 2017/04/27 13:38:18 ryoon Exp $ --- mail/app/nsMailApp.cpp.orig 2016-04-07 21:14:22.000000000 +0000 +++ mail/app/nsMailApp.cpp @@@@ -15,6 +15,26 @@@@ #include #include #endif +/* + * 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_MACOSX #include "MacQuirks.h" @@@@ -213,6 +233,7 @@@@ FileExists(const char *path) static nsresult InitXPCOMGlue(const char *argv0, nsIFile **xreDirectory) { + netbsd_fixrlimit(); char exePath[MAXPATHLEN]; nsresult rv = mozilla::BinaryPath::Get(argv0, exePath); @ 1.1 log @Import thunderbird45-45.8.0 as mail/thunderbird45. Mozilla Thunderbird is a redesign of the Mozilla mail component. The goal is to produce a cross platform stand alone mail application using the XUL user interface language. This version uses the gtk2 toolkit. @ text @d1 1 a1 1 $NetBSD: patch-mail_app_nsMailApp.cpp,v 1.1 2016/04/17 18:33:50 ryoon Exp $ @