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