From: Nishi Date: Tue, 8 Oct 2024 10:55:19 +0000 (+0000) Subject: minix is weird X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=9231dbe6e2e1c8c59842a65880f8327572e6b7d0;p=tewi.git minix is weird git-svn-id: file:///raid/svn-personal/tewi/trunk@274 8739d7e6-ffea-ec47-b151-bdff447c6205 --- diff --git a/Server/server.c b/Server/server.c index f07d4da..f6dc0ac 100644 --- a/Server/server.c +++ b/Server/server.c @@ -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;