Mercurial > hg > xemacs-beta
comparison 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 |
comparison
equal
deleted
inserted
replaced
258:58424f6abf56 | 259:11cf20601dec |
---|---|
126 static char *find_crlf (/* char * */); | 126 static char *find_crlf (/* char * */); |
127 | 127 |
128 #define ERROR_MAX 80 /* a pretty arbitrary size */ | 128 #define ERROR_MAX 80 /* a pretty arbitrary size */ |
129 #define POP_PORT 110 | 129 #define POP_PORT 110 |
130 #define KPOP_PORT 1109 | 130 #define KPOP_PORT 1109 |
131 #ifdef WINDOWSNT | 131 #if defined(WINDOWSNT) || defined(__CYGWIN32__) |
132 #define POP_SERVICE "pop3" /* we don't want the POP2 port! */ | 132 #define POP_SERVICE "pop3" /* we don't want the POP2 port! */ |
133 #else | 133 #else |
134 #define POP_SERVICE "pop" | 134 #define POP_SERVICE "pop" |
135 #endif | 135 #endif |
136 #ifdef KERBEROS | 136 #ifdef KERBEROS |
1025 | 1025 |
1026 do | 1026 do |
1027 { | 1027 { |
1028 hostent = gethostbyname (host); | 1028 hostent = gethostbyname (host); |
1029 try_count++; | 1029 try_count++; |
1030 if ((! hostent) && ((h_errno != TRY_AGAIN) || (try_count == 5))) | 1030 if ((! hostent) |
1031 #ifndef BROKEN_CYGWIN | |
1032 && ((h_errno != TRY_AGAIN) || (try_count == 5)) | |
1033 #endif | |
1034 ) | |
1031 { | 1035 { |
1032 strcpy (pop_error, "Could not determine POP server's address"); | 1036 strcpy (pop_error, "Could not determine POP server's address"); |
1033 return (-1); | 1037 return (-1); |
1034 } | 1038 } |
1035 } while (! hostent); | 1039 } while (! hostent); |