2004-10-19  Roland McGrath  <roland@redhat.com>

	* sock.c [! LINUX]: Include <sys/socket.h> before <sys/sockio.h>.
	Reported by Marty Leisner <mleisner@eng.mc.xerox.com>.
diff --git a/sock.c b/sock.c
index 5c1e7ef..be7a5b8 100644
--- a/sock.c
+++ b/sock.c
@@ -33,6 +33,7 @@
 #include <sys/socket.h>
 #include <linux/sockios.h>
 #else
+#include <sys/socket.h>
 #include <sys/sockio.h>
 #endif
 #include <arpa/inet.h>