]> Nishi Git Mirror - tewi.git/commitdiff
minix is weird
authorNishi <nishi@nishi.boats>
Tue, 8 Oct 2024 10:55:19 +0000 (10:55 +0000)
committerNishi <nishi@nishi.boats>
Tue, 8 Oct 2024 10:55:19 +0000 (10:55 +0000)
git-svn-id: file:///raid/svn-personal/tewi/trunk@274 8739d7e6-ffea-ec47-b151-bdff447c6205

Server/server.c

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