1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-09 00:00:04 +01:00

Don't include <sys/cdefs.h> for NetBSD

We needed it for the BSD symbol to be defined, while __NetBSD__ is defined
with a compiler.

Thanks Andy Green for the initial fix.

Signed-off-by: Kamil Rytarowski <n54@gmx.com>
This commit is contained in:
Kamil Rytarowski 2016-02-27 03:18:43 +01:00 committed by Andy Green
parent c0495892bc
commit f57a2b5a8c
2 changed files with 3 additions and 3 deletions

View file

@ -140,7 +140,7 @@ struct sockaddr_in;
#else /* NOT WIN32 */
#include <unistd.h>
#ifdef BSD
#if defined(__NetBSD__)
#include <netinet/in.h>
#endif

View file

@ -61,7 +61,8 @@
#include <unistd.h>
#include <sys/socket.h>
#endif
#ifdef BSD
#if defined(__NetBSD__)
#include <netinet/in.h>
#endif
@ -956,4 +957,3 @@ bail1:
return 0;
}