]> Nishi Git Mirror - tewi.git/commitdiff
revert and add
authorNishi <nishi@nishi.boats>
Tue, 8 Oct 2024 11:00:48 +0000 (11:00 +0000)
committerNishi <nishi@nishi.boats>
Tue, 8 Oct 2024 11:00:48 +0000 (11:00 +0000)
git-svn-id: file:///raid/svn-personal/tewi/trunk@275 8739d7e6-ffea-ec47-b151-bdff447c6205

Server/server.c

index f6dc0ac402b7672fab8830d6e1cb246a2e7b1213..e1f903bdefb69e0fae3d70ee06f735dd77633955 100644 (file)
@@ -157,10 +157,7 @@ int tw_server_init(void) {
                        cm_log("Server", "setsockopt failure (reuseaddr)");
                        return 1;
                }
-#ifndef __PPU__
-#ifdef __minix
-               if(setsockopt(sock, 0, TCP_NODELAY, (void*)&yes, sizeof(yes)) < 0) {
-#else
+#if !defined(__PPU__) && !defined(__minix)
                if(setsockopt(sock, IPPROTO_TCP, TCP_NODELAY, (void*)&yes, sizeof(yes)) < 0) {
 #endif
                        close_socket(sock);