$OpenBSD$ correct order and add missing --- capture_ifinfo.c.orig Thu Jan 12 15:11:54 2012 +++ capture_ifinfo.c Thu Jan 12 18:07:26 2012 @@ -31,12 +31,20 @@ #include #include -#ifdef HAVE_ARPA_INET_H -#include +#ifdef HAVE_SYS_TYPES_H +#include #endif #ifdef HAVE_SYS_SOCKET_H #include /* needed to define AF_ values on UNIX */ +#endif + +#ifdef HAVE_NETINET_IN_H +#include +#endif + +#ifdef HAVE_ARPA_INET_H +#include #endif #ifdef HAVE_WINSOCK2_H