Don't include <sys/cdefs.h> for NetBSD
authorKamil Rytarowski <n54@gmx.com>
Sat, 27 Feb 2016 02:18:43 +0000 (03:18 +0100)
committerAndy Green <andy.green@linaro.org>
Sat, 27 Feb 2016 02:24:40 +0000 (10:24 +0800)
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>
lib/libwebsockets.h
test-server/fuzxy.c

index 872cd47..f624747 100644 (file)
@@ -141,7 +141,6 @@ struct sockaddr_in;
 #include <unistd.h>
 
 #if defined(__NetBSD__)
-#include <sys/cdefs.h>
 #include <netinet/in.h>
 #endif
 
index 14873bf..03024b7 100644 (file)
@@ -63,7 +63,6 @@
 #endif
 
 #if defined(__NetBSD__)
-#include <sys/cdefs.h>
 #include <netinet/in.h>
 #endif
 
@@ -958,4 +957,3 @@ bail1:
 
        return 0;
 }
-