|
From: Samuel T. <sam...@en...> - 2004-06-22 15:54:48
|
Le mar 22 jun 2004 =E0 08:32:37 -0700, Mike Houston a tapot=E9 sur son cl= avier : > Samuel Thibault wrote: >=20 > >Le lun 21 jun 2004 =E0 17:23:28 -0700, Mike Houston a tapot=E9 sur son= clavier=20 > >: > >>I noticed that we are trying to include sys/socket.h on ALL platforms= . =20 > >>We shouldn't be doing this under Windows. I'll be checking in a fix=20 > >>shortly. > > > >Is netdb.h available under Windows ? It happens to seem to provide > >AF_INET6 under linux, but I'm really not sure. The tests I could see i= n > >configure.in scripts was always to use <sys/socket.h> > >=20 > > > No. Windows doesn't yet support IPv6, at least in a standard posix man= ner. Yes, I know, but netdb.h also provides gethostbyname & co, I wonder where they are defined under Windows. Oops, sorry, misexplaining: I wanted to say that netdb.h seems to include sys/socket.h itself so that we could replace #include <sys/socket.h> by #include <netdb.h> and remove #ifndef WIN, but for this, netdb.h is needed even in windows. Regards, Samuel |