]> git.pond.sub.org Git - empserver/commitdiff
(player_init) [LISTENMAXCONN]: Comment seems to claim Linux doesn't
authorMarkus Armbruster <armbru@pond.sub.org>
Sat, 23 Jul 2005 19:12:23 +0000 (19:12 +0000)
committerMarkus Armbruster <armbru@pond.sub.org>
Sat, 23 Jul 2005 19:12:23 +0000 (19:12 +0000)
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.

src/lib/player/accept.c

index faeda1c222408ec3e2c1c1c419fbe70838ac1cbb..288dcb3b09923ba44f9b53a13cd2e881028e2136 100644 (file)
@@ -109,18 +109,10 @@ player_init(void)
        logerror("inet socket bind");
        exit(1);
     }
        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);
     }
     if (listen(s, SOMAXCONN) < 0) {
        logerror("inet socket listen");
        exit(1);
     }
-#endif
     player_socket = s;
 }
 
     player_socket = s;
 }