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:
Assar Westerlund
1997-02-02 23:44:00 +00:00
parent 9c58be3a22
commit 485ee54c13

View File

@@ -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;
}