diff options
Diffstat (limited to 'lib-src/pop.c')
| -rw-r--r-- | lib-src/pop.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/lib-src/pop.c b/lib-src/pop.c index a3fda09d44f..426b39bd1fb 100644 --- a/lib-src/pop.c +++ b/lib-src/pop.c | |||
| @@ -67,7 +67,6 @@ extern struct servent *hes_getservbyname (/* char *, char * */); | |||
| 67 | #include <stdio.h> | 67 | #include <stdio.h> |
| 68 | #ifdef STDC_HEADERS | 68 | #ifdef STDC_HEADERS |
| 69 | #include <string.h> | 69 | #include <string.h> |
| 70 | #define index strchr | ||
| 71 | #endif | 70 | #endif |
| 72 | #include <unistd.h> | 71 | #include <unistd.h> |
| 73 | 72 | ||
| @@ -91,6 +90,8 @@ extern struct servent *hes_getservbyname (/* char *, char * */); | |||
| 91 | # endif | 90 | # endif |
| 92 | #endif /* KERBEROS */ | 91 | #endif /* KERBEROS */ |
| 93 | 92 | ||
| 93 | #include <min-max.h> | ||
| 94 | |||
| 94 | #ifdef KERBEROS | 95 | #ifdef KERBEROS |
| 95 | #ifndef KERBEROS5 | 96 | #ifndef KERBEROS5 |
| 96 | extern int krb_sendauth (/* long, int, KTEXT, char *, char *, char *, | 97 | extern int krb_sendauth (/* long, int, KTEXT, char *, char *, char *, |
| @@ -122,19 +123,15 @@ static char *find_crlf (char *, int); | |||
| 122 | to be bigger than the original | 123 | to be bigger than the original |
| 123 | value of 80 */ | 124 | value of 80 */ |
| 124 | #define POP_PORT 110 | 125 | #define POP_PORT 110 |
| 125 | #define KPOP_PORT 1109 | ||
| 126 | #define POP_SERVICE "pop3" /* we don't want the POP2 port! */ | 126 | #define POP_SERVICE "pop3" /* we don't want the POP2 port! */ |
| 127 | #ifdef KERBEROS | 127 | #ifdef KERBEROS |
| 128 | #define KPOP_PORT 1109 | ||
| 128 | #define KPOP_SERVICE "kpop" /* never used: look for 20060515 to see why */ | 129 | #define KPOP_SERVICE "kpop" /* never used: look for 20060515 to see why */ |
| 129 | #endif | 130 | #endif |
| 130 | 131 | ||
| 131 | char pop_error[ERROR_MAX]; | 132 | char pop_error[ERROR_MAX]; |
| 132 | int pop_debug = 0; | 133 | int pop_debug = 0; |
| 133 | 134 | ||
| 134 | #ifndef min | ||
| 135 | #define min(a,b) (((a) < (b)) ? (a) : (b)) | ||
| 136 | #endif | ||
| 137 | |||
| 138 | /* | 135 | /* |
| 139 | * Function: pop_open (char *host, char *username, char *password, | 136 | * Function: pop_open (char *host, char *username, char *password, |
| 140 | * int flags) | 137 | * int flags) |