This is the mail archive of the
cygwin@sources.redhat.com
mailing list for the Cygwin project.
Re: Where is h_errno?
On Sunday 17 December 2000 13:36, Stephen C. Biggs wrote:
> > Did you search the include files before sending this mail?
>
> Yes I did... the only definition that resolves to something is in
> w32api/winsock.h. This doesn't work if I am trying to compile a Unix
> tarball (apache). netdb.h has an extern but only if
> __INSIDE_CYGWIN_NET__
No. It contains
#ifdef __INSIDE_CYGWIN_NET__
extern int h_errno;
#else
extern __declspec(dllimport) int h_errno;
#endif
> > Did you eliminate the `extern int h_errno;' line(s) when __CYGWIN__
> > is defined?
>
> What would that do? The compile will then exit with an undefined
> symbol instead of getting to the linker error.
It wouldn't conflict with the above definition in netdb.h
It's the same situation as it's with errno.
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Developer mailto:cygwin@cygwin.com
Red Hat, Inc.
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com