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 {
|
||||
hp = gethostbyname(host);
|
||||
if (hp == NULL) {
|
||||
#ifdef __CYGWIN32__
|
||||
warnx("%s: %s", host, "unknown error");
|
||||
#else
|
||||
#ifdef HAVE_H_ERRNO
|
||||
warnx("%s: %s", host, hstrerror(h_errno));
|
||||
#else
|
||||
warnx("%s: %s", host, "unknown error");
|
||||
#endif
|
||||
code = -1;
|
||||
return NULL;
|
||||
|
Reference in New Issue
Block a user