(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.
This commit is contained in:
Markus Armbruster 2005-07-23 19:12:23 +00:00
parent c9cc4e3cab
commit 4861f837fb

View file

@ -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;
}