Skip to content
Snippets Groups Projects
Commit f57751f9 authored by Joakim Söderberg's avatar Joakim Söderberg Committed by Andy Green
Browse files

Fixed compilation on NetBSD.

parent cb4156d4
No related branches found
No related tags found
No related merge requests found
...@@ -12,7 +12,7 @@ struct libwebsocket *__libwebsocket_client_connect_2( ...@@ -12,7 +12,7 @@ struct libwebsocket *__libwebsocket_client_connect_2(
int plen = 0; int plen = 0;
char pkt[512]; char pkt[512];
int opt = 1; int opt = 1;
#if defined(__APPLE__) || defined(__FreeBSD__) #if defined(__APPLE__) || defined(__FreeBSD__) || defined(__NetBSD__)
struct protoent *tcp_proto; struct protoent *tcp_proto;
#endif #endif
...@@ -63,7 +63,7 @@ struct libwebsocket *__libwebsocket_client_connect_2( ...@@ -63,7 +63,7 @@ struct libwebsocket *__libwebsocket_client_connect_2(
bzero(&server_addr.sin_zero, 8); bzero(&server_addr.sin_zero, 8);
/* Disable Nagle */ /* Disable Nagle */
#if !defined(__APPLE__) && !defined(__FreeBSD__) #if !defined(__APPLE__) && !defined(__FreeBSD__) && !defined(__NetBSD__)
setsockopt(wsi->sock, SOL_TCP, TCP_NODELAY, setsockopt(wsi->sock, SOL_TCP, TCP_NODELAY,
(const void *)&opt, sizeof(opt)); (const void *)&opt, sizeof(opt));
#else #else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment