Before declaring h_errno, do not check for Win32 only. Instead, do check

whether h_errno is a macro.
This commit is contained in:
Martin v. Löwis 2001-07-23 07:27:16 +00:00
parent 4c81d60fcb
commit fe36fc91ed
2 changed files with 2 additions and 2 deletions

View file

@ -544,7 +544,7 @@ get_addr(hostname, af, res, pai, port0)
struct gai_afd *gai_afd;
int i, error = 0, h_error;
char *ap;
#if !defined(INET6) && !defined(MS_WIN32)
#if !defined(INET6) && !defined(h_errno)
/* In winsock.h, h_errno is #defined as a function call. */
extern int h_errno;
#endif