s/__CYGWIN32__/HAVE_H_ERRNO/

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1243 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
1997-02-17 21:07:35 +00:00
parent da9e49e0bf
commit 80bf487a4f

View File

@@ -64,10 +64,10 @@ hookup(char *host, int port)
} else { } else {
hp = gethostbyname(host); hp = gethostbyname(host);
if (hp == NULL) { if (hp == NULL) {
#ifdef __CYGWIN32__ #ifdef HAVE_H_ERRNO
warnx("%s: %s", host, "unknown error");
#else
warnx("%s: %s", host, hstrerror(h_errno)); warnx("%s: %s", host, hstrerror(h_errno));
#else
warnx("%s: %s", host, "unknown error");
#endif #endif
code = -1; code = -1;
return NULL; return NULL;