X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=configure;h=bd27742cd77066f37003927ce1efea1123ad27a6;hb=dd295f72eee7ca0d364be1886891a86a89c5f907;hp=5be14d8331f066d3546095868ed341fbd1fe4bbb;hpb=943def6a01b2e9692a676cb0b8bb9ae7411a737d;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/configure b/configure index 5be14d833..bd27742cd 100755 --- a/configure +++ b/configure @@ -14,6 +14,7 @@ require 5.6.0; +use Socket; use Cwd; use Getopt::Long; @@ -209,6 +210,7 @@ $config{STATIC_LINK} = "no"; # are doing static modules? chomp($config{MAX_CLIENT_T} = `sh -c \"ulimit -n\"`); # FD Limit chomp($config{MAX_DESCRIPTORS} = `sh -c \"ulimit -n\"`); # Hard FD Limit chomp($config{GCCVER} = `g++ -dumpversion | cut -c 1`); # Major GCC Version +$config{_SOMAXCONN} = SOMAXCONN; # Max connections in accept queue $config{OSNAME} = $^O; # Operating System Name $config{CC} = "g++"; # C++ compiler if (defined $opt_cc) @@ -1191,6 +1193,7 @@ sub writefiles { #define REVISION "$revision2" #define MAXCLIENTS $config{MAX_CLIENT} #define MAXCLIENTS_S "$config{MAX_CLIENT}" +#define SOMAXCONN_S "$config{_SOMAXCONN}" #define MAX_DESCRIPTORS $config{MAX_DESCRIPTORS} #define NICKMAX $NL #define CHANMAX $CL