TCP_* is in the reserved namespace for tcp.h; make use of that
This commit is contained in:
parent
6951110368
commit
3cd084bb03
1 changed files with 4 additions and 3 deletions
|
|
@ -4,9 +4,6 @@
|
||||||
#include <features.h>
|
#include <features.h>
|
||||||
|
|
||||||
#define TCP_NODELAY 1
|
#define TCP_NODELAY 1
|
||||||
#if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
|
|
||||||
#include <sys/types.h>
|
|
||||||
#include <sys/socket.h>
|
|
||||||
#define TCP_MAXSEG 2
|
#define TCP_MAXSEG 2
|
||||||
#define TCP_CORK 3
|
#define TCP_CORK 3
|
||||||
#define TCP_KEEPIDLE 4
|
#define TCP_KEEPIDLE 4
|
||||||
|
|
@ -20,6 +17,10 @@
|
||||||
#define TCP_QUICKACK 12
|
#define TCP_QUICKACK 12
|
||||||
#define TCP_CONGESTION 13
|
#define TCP_CONGESTION 13
|
||||||
#define TCP_MD5SIG 14
|
#define TCP_MD5SIG 14
|
||||||
|
|
||||||
|
#if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
|
||||||
|
#include <sys/types.h>
|
||||||
|
#include <sys/socket.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue