From 6548d730b244caa2bd304de139afac2e549c3128 Mon Sep 17 00:00:00 2001 From: "Soenke J. Peters" Date: Fri, 23 Oct 2020 12:37:06 +0200 Subject: [PATCH] fix Cygwin TCP_NODELAY not defined error --- src/socket.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/socket.c b/src/socket.c index 8ecc75f4..29bf36c9 100644 --- a/src/socket.c +++ b/src/socket.c @@ -33,15 +33,9 @@ #include #include #include -#ifndef __CYGWIN__ -// I'm not sure about this cpp defines, can some check tht? -fn- -#ifdef __linux__ -#include // do we realy need this? Not sure for Linux -fn- -#endif +#include // TCP_NODELAY is defined there -fn- #if defined (__FreeBSD__) || defined(__APPLE__) #include -#include // TCP_NODELAY is defined there -fn- -#endif #endif #include "socket.h"