--- lynx2-8-7.orig/WWW/Library/Implementation/www_tcp.h	2007-08-03 01:24:27.000000000 +0200
+++ lynx2-8-7/WWW/Library/Implementation/www_tcp.h	2009-06-13 12:34:28.000000000 +0200
@@ -777,12 +777,14 @@ Defaults
 #ifndef NO_IOCTL
 #include <sys/ioctl.h>		/* EJB */
 #endif /* !NO_IOCTL */
+#ifndef HOSTBUILD
 #include <sys/socket.h>
 #include <netinet/in.h>
 #ifdef HAVE_ARPA_INET_H
 #include <arpa/inet.h>		/* Must be after netinet/in.h */
 #endif
 #include <netdb.h>
+#endif
 #endif /* TCP includes */
 
 typedef unsigned short PortNumber;
