netbsd netinet include
authorAndy Green <andy.green@linaro.org>
Sat, 27 Feb 2016 01:34:28 +0000 (09:34 +0800)
committerAndy Green <andy.green@linaro.org>
Sat, 27 Feb 2016 01:34:28 +0000 (09:34 +0800)
Signed-off-by: Andy Green <andy.green@linaro.org>
lib/libwebsockets.h
test-server/fuzxy.c

index fe92802..6ef4805 100644 (file)
@@ -140,6 +140,10 @@ struct sockaddr_in;
 #else /* NOT WIN32 */
 #include <unistd.h>
 
+#ifdef BSD
+#include <netinet/in.h>
+#endif
+
 #define LWS_INLINE inline
 #define LWS_O_RDONLY O_RDONLY
 
index db3db80..398e069 100644 (file)
@@ -61,6 +61,9 @@
 #include <unistd.h>
 #include <sys/socket.h>
 #endif
+#ifdef BSD
+#include <netinet/in.h>
+#endif
 
 #define MAX_FUZZ_BUF (1024 * 1024)