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 7db50aa..872cd47 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 db3db80..14873bf 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 {