getline -> get_line. honour CC.

This commit is contained in:
sthen 2012-03-17 11:00:06 +00:00
parent cedf61320a
commit e72312ef8c
2 changed files with 33 additions and 3 deletions

View File

@ -1,10 +1,10 @@
# $OpenBSD: Makefile,v 1.25 2012/03/17 10:57:23 sthen Exp $
# $OpenBSD: Makefile,v 1.26 2012/03/17 11:00:06 sthen Exp $
COMMENT= MIME implementation
DISTNAME= mm2.7
PKGNAME= metamail-2.7
REVISION= 2
REVISION= 3
CATEGORIES= mail
MASTER_SITES= http://www.guppylake.com/~nsb/metamail/
@ -18,7 +18,7 @@ PERMIT_DISTFILES_FTP= Yes
WANTLIB= c termcap
WRKSRC= ${WRKDIST}/src
MAKE_FLAGS= CC="${CC}"
NO_REGRESS= Yes
post-configure:

View File

@ -0,0 +1,30 @@
$OpenBSD: patch-src_metamail_uue_c,v 1.1 2012/03/17 11:00:06 sthen Exp $
--- src/metamail/uue.c.orig Sat Mar 17 10:57:45 2012
+++ src/metamail/uue.c Sat Mar 17 10:58:17 2012
@@ -30,7 +30,7 @@ FILE *outfp;
}
-getline (buf, size, fp)
+get_line (buf, size, fp)
char *buf;
int size;
FILE *fp;
@@ -70,7 +70,7 @@ int *ctptr;
char buf[63];
while (1) {
- if (getline (buf, sizeof buf, infp) < 0) {
+ if (get_line (buf, sizeof buf, infp) < 0) {
fprintf (stderr, "Premature EOF!\n");
return;
}
@@ -82,7 +82,7 @@ int *ctptr;
}
}
while (1) {
- if (getline (buf, sizeof buf, infp) < 0) {
+ if (get_line (buf, sizeof buf, infp) < 0) {
fprintf (stderr, "Premature EOF!\n");
return;
}