mirror of https://github.com/ntop/n2n.git
Browse Source
* Revert "Fix compilation on MacOS" in order to another solution * src: use IPPROTO_TCP in place of SOL_TCP * use the more specific IPPROTO_TCP type for setsockopt * fixes build on MacOS src/edge_utils.c:891:31: error: use of undeclared identifier 'SOL_TCP'; did you mean 'FPP_TCP'? setsockopt(eee->sock, SOL_TCP, TCP_NODELAY, &value, sizeof(value)); src/edge_utils.c:894:31: error: use of undeclared identifier 'SOL_TCP' setsockopt(eee->sock, SOL_TCP, TCP_CORK, &value, sizeof(value)); ^ src/edge_utils.c:894:40: error: use of undeclared identifier 'TCP_CORK' setsockopt(eee->sock, SOL_TCP, TCP_CORK, &value, sizeof(value)); * include/n2n.h: drop redefiniton of SOL_TCP for WIN32, as we don't use it anywhere now * src: only use TCP_CORK on LINUX * it's LINUX only and fails on Win32 and MacOS (man 7 tcp)pull/682/head
Sven Roederer
4 years ago
committed by
GitHub
3 changed files with 14 additions and 21 deletions
Loading…
Reference in new issue