$OpenBSD: patch-src_common_c,v 1.1 2010/07/22 14:40:49 landry Exp $ Make sure netinet/in.h is included before arpa/inet.h --- src/common.c.orig Thu Jul 22 16:25:01 2010 +++ src/common.c Thu Jul 22 16:25:15 2010 @@ -38,6 +38,10 @@ # include #endif +#if HAVE_NETINET_IN_H +# include +#endif + /* for ntohl and htonl */ #if HAVE_ARPA_INET_H # include @@ -47,10 +51,6 @@ #include #include #include - -#if HAVE_NETINET_IN_H -# include -#endif #ifdef HAVE_LIBKSTAT extern kstat_ctl_t *kc;