Alexey Aphanasyev wrote:

>Hello Thomas,
>
>Thomas Lussnig wrote:
>
>>>>host.h:34: field `sa' has incomplete type
>>>>host.h:35: field `sin' has incomplete type
>>>>
Hi this patch were on the list i hope it help oyu
This structure are for socket(tcp) handling.
I think it's missing net netinet/in.h include.

cu Thomas

issing include files on FreeBSD 4.4-STABLE.

---8<-snip---8<-snip---8<-snip---8<-snip---8<-snip---8<-snip---8<---
Index: src/ftp-basic.c
===================================================================
RCS file: /pack/anoncvs/wget/src/ftp-basic.c,v
retrieving revision 1.17
diff -u -3 -r1.17 ftp-basic.c
--- src/ftp-basic.c     2002/01/31 02:23:04     1.17
+++ src/ftp-basic.c     2002/02/05 00:20:43
@@ -36,6 +36,7 @@
 /* For inet_ntop. */
 #ifndef WINDOWS
 #include <sys/socket.h>
+#include <netinet/in.h>
 #include <arpa/inet.h>
 #endif

Index: src/host.h
===================================================================
RCS file: /pack/anoncvs/wget/src/host.h,v
retrieving revision 1.9
diff -u -3 -r1.9 host.h
--- src/host.h  2002/01/24 05:45:54     1.9
+++ src/host.h  2002/02/05 00:20:43
@@ -21,6 +21,8 @@
 #define HOST_H

 #include <netdb.h>
+#include <netinet/in.h>
+#include <sys/socket.h>

 #undef INET6

---8<-snip---8<-snip---8<-snip---8<-snip---8<-snip---8<-snip---8<---

-- 
Alan Eldridge


Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to