From: Markus Armbruster Date: Sat, 23 Jul 2005 19:12:23 +0000 (+0000) Subject: (player_init) [LISTENMAXCONN]: Comment seems to claim Linux doesn't X-Git-Tag: v4.2.22~99 X-Git-Url: http://git.pond.sub.org/?p=empserver;a=commitdiff_plain;h=4861f837fbeffe14c3b019b355735ecff98ed34e (player_init) [LISTENMAXCONN]: Comment seems to claim Linux doesn't have SOMAXCONN, but has LISTENMAXCONN. In fact, it has SOMAXCONN, and LISTENMAXCONN doesn't exist anywhere in /usr/include or the Internet. Remove the special case. --- diff --git a/src/lib/player/accept.c b/src/lib/player/accept.c index faeda1c22..288dcb3b0 100644 --- a/src/lib/player/accept.c +++ b/src/lib/player/accept.c @@ -109,18 +109,10 @@ player_init(void) logerror("inet socket bind"); exit(1); } -#ifdef LISTENMAXCONN /* because someone in linux world didn't want to use - * SOMAXCONN as defined in the header files... */ - if (listen(s, LISTENMAXCONN) < 0) { - logerror("inet socket listen"); - exit(1); - } -#else if (listen(s, SOMAXCONN) < 0) { logerror("inet socket listen"); exit(1); } -#endif player_socket = s; }