1 Rename getline() to procmail_getline() to avoid namespace clash with
2 POSIX getline(). Fixes FTBFS.
5 http://sources.debian.net/src/procmail/3.22-24/debian/patches/24/
8 http://bugs.debian.org/549426
13 /* try and append one valid field to rdheader from stdin */
14 int readhead P((void))
18 if((idlen=breakfield(buf,buffilled))<=0) /* not the start of a valid field */
20 if(idlen==STRLEN(FROM)&&eqFrom_(buf)) /* it's a From_ line */
22 return 0; /* the From_ line was a fake! */
23 - for(;buflast=='>';getline()); /* gather continued >From_ lines */
24 + for(;buflast=='>';procmail_getline()); /* gather continued >From_ lines */
27 - for(;;getline()) /* get the rest of the continued field */
28 + for(;;procmail_getline()) /* get the rest of the continued field */
29 { switch(buflast) /* will this line be continued? */
30 { case ' ':case '\t': /* yep, it sure is */
35 { if(split) /* gobble up the next start separator */
37 #ifdef sMAILBOX_SEPARATOR
38 - getline();buffilled=0; /* but only if it's defined */
39 + procmail_getline();buffilled=0; /* but only if it's defined */
41 if(buflast!=EOF) /* if any */
49 -int getline P((void)) /* read a newline-terminated line */
50 +int procmail_getline P((void)) /* read a newline-terminated line */
51 { if(buflast==EOF) /* at the end of our Latin already? */
52 { loadchar('\n'); /* fake empty line */
53 return EOF; /* spread the word */
58 skipwords P((char*start));
61 + procmail_getline P((void));