(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:
parent
c9cc4e3cab
commit
4861f837fb
1 changed files with 0 additions and 8 deletions
|
@ -109,18 +109,10 @@ player_init(void)
|
||||||
logerror("inet socket bind");
|
logerror("inet socket bind");
|
||||||
exit(1);
|
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) {
|
if (listen(s, SOMAXCONN) < 0) {
|
||||||
logerror("inet socket listen");
|
logerror("inet socket listen");
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
player_socket = s;
|
player_socket = s;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue