From: Roy Marples Date: Thu, 14 May 2015 20:18:58 +0000 (+0000) Subject: Fix compile on NetBSD. X-Git-Tag: v6.9.0~17 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=97f7e3ab71e6aa9f06091d7bed459e24ef8647fc;p=thirdparty%2Fdhcpcd.git Fix compile on NetBSD. --- diff --git a/ipv6.c b/ipv6.c index 1e6778f1..c351ac74 100644 --- a/ipv6.c +++ b/ipv6.c @@ -35,19 +35,6 @@ #include #include -#ifndef __linux__ -# ifndef __QNX__ -# include -# endif -# include -# ifdef __FreeBSD__ /* Needed so that including netinet6/in6_var.h works */ -# include -# endif -# ifndef __sun -# include -# endif -#endif - #include #include #include diff --git a/ipv6.h b/ipv6.h index a2e3042c..83710c47 100644 --- a/ipv6.h +++ b/ipv6.h @@ -31,6 +31,19 @@ #include #include +#ifndef __linux__ +# ifndef __QNX__ +# include +# endif +# include +# ifdef __FreeBSD__ /* Needed so that including netinet6/in6_var.h works */ +# include +# endif +# ifndef __sun +# include +# endif +#endif + #include "config.h" #include "dhcpcd.h"