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:
@@ -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;
|
||||||
|
Reference in New Issue
Block a user