netbsd netinet include
authorAndy Green <andy.green@linaro.org>
Sat, 27 Feb 2016 01:34:48 +0000 (09:34 +0800)
committerAndy Green <andy.green@linaro.org>
Sat, 27 Feb 2016 01:34:48 +0000 (09:34 +0800)
https://github.com/warmcat/libwebsockets/issues/442

Signed-off-by: Andy Green <andy.green@linaro.org>
lib/libwebsockets.h
test-server/fuzxy.c

index 7db50aa5f0fe70dc5b2f278ec149c97ce9c92fa1..872cd476fff3441f5892177ad76f1a53d6abb78f 100644 (file)
@@ -140,6 +140,11 @@ struct sockaddr_in;
 #else /* NOT WIN32 */
 #include <unistd.h>
 
+#if defined(__NetBSD__)
+#include <sys/cdefs.h>
+#include <netinet/in.h>
+#endif
+
 #define LWS_INLINE inline
 #define LWS_O_RDONLY O_RDONLY
 
index db3db80e2f572320da8785fd6eed54cbca310f5e..14873bf590135ab01546157e4c6c12936476c824 100644 (file)
 #include <sys/socket.h>
 #endif
 
+#if defined(__NetBSD__)
+#include <sys/cdefs.h>
+#include <netinet/in.h>
+#endif
+
 #define MAX_FUZZ_BUF (1024 * 1024)
 
 enum types {