$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 <math.h>
 #endif
 
+#if HAVE_NETINET_IN_H
+# include <netinet/in.h>
+#endif
+
 /* for ntohl and htonl */
 #if HAVE_ARPA_INET_H
 # include <arpa/inet.h>
@@ -47,10 +51,6 @@
 #include <sys/types.h>
 #include <sys/socket.h>
 #include <netdb.h>
-
-#if HAVE_NETINET_IN_H
-# include <netinet/in.h>
-#endif
 
 #ifdef HAVE_LIBKSTAT
 extern kstat_ctl_t *kc;
