pkgsrc/mail/ja-mh/patches/patch-br
taca f7ee73e0ba * Fix build problem on NetBSD current, terminfo case.
* Add comments to each patch file.
2010-09-27 12:01:49 +00:00

33 lines
1 KiB
Text
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;