aboutsummaryrefslogtreecommitdiffstats
path: root/lib-src/pop.c
diff options
context:
space:
mode:
authorJoakim Verona2011-06-16 00:22:07 +0200
committerJoakim Verona2011-06-16 00:22:07 +0200
commita7513ade3bc0fe79430d5541d88c9dcda0932bec (patch)
tree4383951ba698a11e9f8933a9d8c72e00aa872a10 /lib-src/pop.c
parent4bd51ad5c3445b644dfb017d5b57b10a90aa325f (diff)
parent4bba86e6210a74326e843a8fdc8409127105e1fe (diff)
downloademacs-a7513ade3bc0fe79430d5541d88c9dcda0932bec.tar.gz
emacs-a7513ade3bc0fe79430d5541d88c9dcda0932bec.zip
merge from upstream
Diffstat (limited to 'lib-src/pop.c')
-rw-r--r--lib-src/pop.c9
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
96extern int krb_sendauth (/* long, int, KTEXT, char *, char *, char *, 97extern 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
131char pop_error[ERROR_MAX]; 132char pop_error[ERROR_MAX];
132int pop_debug = 0; 133int 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)