Ticket #14076: squid-maxfiles.diff
File squid-maxfiles.diff, 1.2 KB (added by josh+macports@…, 17 years ago) |
---|
-
files/patch-configure.diff
1 --- configure.orig 2008-01-10 23:34:23.000000000 +1100 2 +++ configure 2008-01-26 15:32:17.000000000 +1100 3 @@ -25837,7 +25837,12 @@ 4 if (getrlimit(RLIMIT_NOFILE, &rl) < 0) { 5 perror("getrlimit: RLIMIT_NOFILE"); 6 } else { 7 +#if defined(__APPLE__) 8 + /* asking for more than OPEN_MAX fails on Leopard */ 9 + rl.rlim_cur = (OPEN_MAX < rl.rlim_max ? OPEN_MAX : rl.rlim_max); 10 +#else 11 rl.rlim_cur = rl.rlim_max; /* set it to the max */ 12 +#endif 13 if (setrlimit(RLIMIT_NOFILE, &rl) < 0) { 14 perror("setrlimit: RLIMIT_NOFILE"); 15 } -
Portfile
4 4 5 5 name squid 6 6 version 2.6.STABLE18 7 revision 1 7 8 categories net 8 9 platforms darwin 9 10 maintainers mww … … 29 30 sha1 9b3a46d5b004405cb958a95e34460ba4bfb503c8 30 31 31 32 use_bzip2 yes 32 patchfiles patch-cf.data.pre.diff 33 patchfiles patch-cf.data.pre.diff patch-configure.diff 33 34 34 35 depends_lib port:openssl port:zlib 35 36