Skip to content

Commit

Permalink
fix Cygwin TCP_NODELAY not defined error
Browse files Browse the repository at this point in the history
  • Loading branch information
speters committed Oct 23, 2020
1 parent c5f5dbe commit 6548d73
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/socket.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,9 @@
#include <arpa/inet.h>
#include <sys/types.h>
#include <sys/socket.h>
#ifndef __CYGWIN__
// I'm not sure about this cpp defines, can some check tht? -fn-
#ifdef __linux__
#include <linux/tcp.h> // do we realy need this? Not sure for Linux -fn-
#endif
#include <netinet/tcp.h> // TCP_NODELAY is defined there -fn-
#if defined (__FreeBSD__) || defined(__APPLE__)
#include <netinet/in.h>
#include <netinet/tcp.h> // TCP_NODELAY is defined there -fn-
#endif
#endif

#include "socket.h"
Expand Down

0 comments on commit 6548d73

Please sign in to comment.