diff --git a/libnetutil/netutil.cc b/libnetutil/netutil.cc index 2350801c4..6bb86cec5 100644 --- a/libnetutil/netutil.cc +++ b/libnetutil/netutil.cc @@ -116,17 +116,6 @@ #if HAVE_SYS_SOCKIO_H #include /* SIOCGIFCONF for Solaris */ #endif - -#if HAVE_NET_IF_H -#ifndef NET_IF_H /* This guarding is needed for at least some versions of OpenBSD */ -#include -#define NET_IF_H -#endif -#endif -#ifndef NETINET_IP_H /* This guarding is needed for at least some versions of OpenBSD */ -#include -#define NETINET_IP_H -#endif #include /* Define CMSG_* symbols for Solaris 9 and earlier. See @@ -163,6 +152,17 @@ #include "netutil.h" +#if HAVE_NET_IF_H +#ifndef NET_IF_H /* This guarding is needed for at least some versions of OpenBSD */ +#include +#define NET_IF_H +#endif +#endif +#ifndef NETINET_IP_H /* This guarding is needed for at least some versions of OpenBSD */ +#include +#define NETINET_IP_H +#endif + #if HAVE_SYS_RESOURCE_H #include #endif