Files
pkgsrc-ng/mail/ja-mh/patches/patch-br
2013-09-26 17:14:40 +02:00

34 lines
1.0 KiB
Plaintext
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
$NetBSD: patch-br,v 1.2 2010/09/27 12:01:49 taca Exp $
* Fix confilct with getline(3).
--- support/pop/popser.c.orig 1999-02-09 11:30:00.000000000 +0000
+++ support/pop/popser.c
@@ -259,7 +259,7 @@ static p_cmatch(), p_isdate(), p_ishead
extern int mbx_read ();
static int setup(), setupaux(), read_map(), read_file(), pmbx_size();
-static int quitaux(), quitfile(), respond(), getline();
+static int quitaux(), quitfile(), respond(), _getline();
static m_gMsgs(), multiline(), multiend(), putline();
/* */
@@ -410,7 +410,7 @@ char *rhost;
(void) respond (OK, "%s ready %s", server, timestamp);
for (mystate = auth1; mystate != halt && mystate != error;)
- switch (getline (buffer, sizeof buffer, input)) {
+ switch (_getline (buffer, sizeof buffer, input)) {
case OK:
if ((v = getvector (buffer, vec)) == NULL)
continue;
@@ -1850,7 +1850,7 @@ static multiend () {
/* */
-static int getline (s, n, iop)
+static int _getline (s, n, iop)
register char *s;
register int n;
register FILE *iop;