Patch by Fabien Romano from OpenBSD
SVN revision: 65210
#include <unistd.h>
#include <fcntl.h>
-#ifdef HAVE_ARPA_INET_H
-# include <arpa/inet.h>
-#endif
-
#ifdef HAVE_NETINET_TCP_H
# include <netinet/tcp.h>
#endif
# include <netinet/in.h>
#endif
+#ifdef HAVE_ARPA_INET_H
+# include <arpa/inet.h>
+#endif
+
#ifdef HAVE_SYS_SOCKET_H
# include <sys/socket.h>
#endif
*/
#include <string.h>
+#include <sys/types.h>
+
+#ifdef HAVE_NETINET_IN_H
+# include <netinet/in.h>
+#endif
#ifdef HAVE_ARPA_INET_H
# include <arpa/inet.h>
# include <sys/types.h>
#endif
+#ifdef HAVE_NETINET_IN_H
+# include <netinet/in.h>
+#endif
+
#ifdef HAVE_ARPA_INET_H
# include <arpa/inet.h>
#endif
# include <arpa/nameser.h>
#endif
-#ifdef HAVE_NETINET_IN_H
-# include <netinet/in.h>
-#endif
-
#ifdef HAVE_SYS_SOCKET_H
# include <sys/socket.h>
#endif