Hrvoje Niksic <[EMAIL PROTECTED]> writes: > Hack Kampbjørn <[EMAIL PROTECTED]> writes: > > > That doesn't work. In Cygwin, h_errno isn't #defined in <netdb.h> > > #ifdef __INSIDE_CYGWIN_NET__ > > extern int h_errno; > > #else > > extern __declspec(dllimport) int h_errno; > > #endif > > Ah, I see. Then maybe Wget shouldn't declare h_errno, ever? Ha, I now noticed that Linux man page for gethostbyname() says: SYNOPSIS #include <netdb.h> extern int h_errno; Nice. I guess we should have a configure check to determine whether h_errno should be declared.