netbsd netinet include

https://github.com/warmcat/libwebsockets/issues/442

Signed-off-by: Andy Green <andy.green@linaro.org>
This commit is contained in:
Andy Green 2016-02-27 09:34:48 +08:00
parent 5e091c62a8
commit 8df3ef15ab
2 changed files with 10 additions and 0 deletions

View 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

View file

@ -62,6 +62,11 @@
#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 {