From 9231dbe6e2e1c8c59842a65880f8327572e6b7d0 Mon Sep 17 00:00:00 2001 From: Nishi Date: Tue, 8 Oct 2024 10:55:19 +0000 Subject: [PATCH] minix is weird git-svn-id: file:///raid/svn-personal/tewi/trunk@274 8739d7e6-ffea-ec47-b151-bdff447c6205 --- Server/server.c | 4 ++++ 1 file changed, 4 insertions(+) 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; -- 2.43.0