Check HAVE_H_ERRNO
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1208 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -118,7 +118,11 @@ connect_host (char *host, char *user, des_cblock *key,
|
||||
if (hostent == NULL) {
|
||||
fprintf (stderr,
|
||||
"%s: gethostbyname '%s' failed: %s", prog, host,
|
||||
#ifdef HAVE_H_ERRNO
|
||||
hstrerror(h_errno));
|
||||
#else
|
||||
"unknown error");
|
||||
#endif
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user