From 80bf487a4fa8ba636d88fa979021f4ebcdaccda5 Mon Sep 17 00:00:00 2001 From: Assar Westerlund Date: Mon, 17 Feb 1997 21:07:35 +0000 Subject: [PATCH] s/__CYGWIN32__/HAVE_H_ERRNO/ git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1243 ec53bebd-3082-4978-b11e-865c3cabbd6b --- appl/ftp/ftp/ftp.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/appl/ftp/ftp/ftp.c b/appl/ftp/ftp/ftp.c index 2a683b7db..181d6b3ff 100644 --- a/appl/ftp/ftp/ftp.c +++ b/appl/ftp/ftp/ftp.c @@ -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;