Mercurial > hg > xemacs-beta
diff lib-src/pop.c @ 259:11cf20601dec r20-5b28
Import from CVS: tag r20-5b28
author | cvs |
---|---|
date | Mon, 13 Aug 2007 10:23:02 +0200 |
parents | 78f53ef88e17 |
children | c5d627a313b1 |
line wrap: on
line diff
--- a/lib-src/pop.c Mon Aug 13 10:22:10 2007 +0200 +++ b/lib-src/pop.c Mon Aug 13 10:23:02 2007 +0200 @@ -128,7 +128,7 @@ #define ERROR_MAX 80 /* a pretty arbitrary size */ #define POP_PORT 110 #define KPOP_PORT 1109 -#ifdef WINDOWSNT +#if defined(WINDOWSNT) || defined(__CYGWIN32__) #define POP_SERVICE "pop3" /* we don't want the POP2 port! */ #else #define POP_SERVICE "pop" @@ -1027,7 +1027,11 @@ { hostent = gethostbyname (host); try_count++; - if ((! hostent) && ((h_errno != TRY_AGAIN) || (try_count == 5))) + if ((! hostent) +#ifndef BROKEN_CYGWIN + && ((h_errno != TRY_AGAIN) || (try_count == 5)) +#endif + ) { strcpy (pop_error, "Could not determine POP server's address"); return (-1);