From: Nishi Date: Tue, 8 Oct 2024 11:00:48 +0000 (+0000) Subject: revert and add X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=adea0f631fb5160669b1cd85bc13d46d07533054;p=tewi.git revert and add git-svn-id: file:///raid/svn-personal/tewi/trunk@275 8739d7e6-ffea-ec47-b151-bdff447c6205 --- diff --git a/Server/server.c b/Server/server.c index f6dc0ac..e1f903b 100644 --- a/Server/server.c +++ b/Server/server.c @@ -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);