pkgsrc/chat/ircu/patches/patch-ah
adrianp fa4eda0b58 Update to 2.10.12.10
Some of the changes include:
* doc/example.conf: Document new options for General block.
* doc/example.conf (Features): Illustrate URLREG feature.
* ircd/m_burst.c (ms_burst): Properly handle member mode :ov.
* doc/example.conf (Port): Document the method to select IPv4 or
  IPv6 restriction for a port.
* ircd/s_auth.c (auth_ping_timeout): If the client never had an
  auth request, kill them on ping timeout.
* ircd/s_auth.c (check_auth_finished): Only check passwords on
  user ports.

See the ChangeLog for the full details
2007-04-09 12:39:25 +00:00

43 lines
1.4 KiB
Text

$NetBSD: patch-ah,v 1.5 2007/04/09 12:39:27 adrianp Exp $
--- configure.orig 2005-12-14 03:03:09.000000000 +0000
+++ configure
@@ -9837,7 +9837,7 @@ echo "${ECHO_T}OpenBSD ($host) found." >
fi
;;
- *-*bsd*)
+ *-*bsd* | *-dragonfly*)
echo "$as_me:$LINENO: result: Generic BSD ($host) found." >&5
echo "${ECHO_T}Generic BSD ($host) found." >&6
if test x"$ac_cv_header_poll_h" = xyes; then
@@ -10727,10 +10727,25 @@ cat >>confdefs.h <<_ACEOF
#define LPATH "$unet_lpath"
_ACEOF
-
-unet_maxcon=`ulimit -Hn`
-if test x"$unet_maxcon" = xunlimited; then
- unet_maxcon=`ulimit -Sn`
+if test x$unet_poll_syscall = xno; then
+ # Avoid usage of ulimit. pkgsrc removes some limits at run time and
+ # that raises the values too much in some cases to confuse the code in
+ # s_bsd.c (seen in Mac OS X 10.4). Better use FD_SETSIZE as that is
+ # the maximum value the code will be able to handle when using the
+ # select(2) system call.
+ cat >./conftest.c <<_ACEOF
+#include <sys/select.h>
+#include <stdio.h>
+int main(void) { printf("%d\n", FD_SETSIZE); return 0; }
+_ACEOF
+ cc -o ./conftest ./conftest.c
+ unet_maxcon=`./conftest`
+ rm ./conftest ./conftest.c
+else
+ unet_maxcon=`ulimit -Hn`
+ if test x"$unet_maxcon" = xunlimited; then
+ unet_maxcon=`ulimit -Sn`
+ fi
fi
unet_maxcon=`expr $unet_maxcon - 4`
echo "$as_me:$LINENO: checking max connections" >&5