Skip to content
Snippets Groups Projects
Commit de9c9ad9 authored by rswindell's avatar rswindell
Browse files

Now includes tcp.h on Unix (for TCP_NODELAY definition).

parent 549f329e
No related branches found
No related tags found
No related merge requests found
...@@ -52,15 +52,16 @@ ...@@ -52,15 +52,16 @@
#define _WINSOCKAPI_ #define _WINSOCKAPI_
#endif #endif
#elif defined __unix__ /* Unix-variant */ #elif defined __unix__ /* Unix-variant */
#include <netdb.h> /* gethostbyname */ #include <netdb.h> /* gethostbyname */
#include <sys/types.h> /* For u_int32_t on FreeBSD */ #include <sys/types.h> /* For u_int32_t on FreeBSD */
#include <netinet/in.h> /* IPPROTO_IP */ #include <netinet/in.h> /* IPPROTO_IP */
#include <sys/socket.h> /* socket/bind/etc. */ #include <sys/socket.h> /* socket/bind/etc. */
#include <sys/time.h> /* struct timeval */ #include <sys/time.h> /* struct timeval */
#include <arpa/inet.h> /* inet_ntoa */ #include <arpa/inet.h> /* inet_ntoa */
#include <unistd.h> /* close */ #include <netinet/tcp.h> /* TCP_NODELAY */
#include <unistd.h> /* close */
#if defined(__solaris__) #if defined(__solaris__)
#include <sys/filio.h> /* FIONBIO */ #include <sys/filio.h> /* FIONBIO */
#else #else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment