From e72312ef8cfbb2889e7f27ce93be8a49fe8c6672 Mon Sep 17 00:00:00 2001 From: sthen Date: Sat, 17 Mar 2012 11:00:06 +0000 Subject: [PATCH] getline -> get_line. honour CC. --- mail/metamail/Makefile | 6 ++-- .../metamail/patches/patch-src_metamail_uue_c | 30 +++++++++++++++++++ 2 files changed, 33 insertions(+), 3 deletions(-) create mode 100644 mail/metamail/patches/patch-src_metamail_uue_c diff --git a/mail/metamail/Makefile b/mail/metamail/Makefile index b35fdafa585..e0f38ba2838 100644 --- a/mail/metamail/Makefile +++ b/mail/metamail/Makefile @@ -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: diff --git a/mail/metamail/patches/patch-src_metamail_uue_c b/mail/metamail/patches/patch-src_metamail_uue_c new file mode 100644 index 00000000000..5bc6bec0bcf --- /dev/null +++ b/mail/metamail/patches/patch-src_metamail_uue_c @@ -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; + }