From b9a4c75347dbef1e044ccb06625eb7dae8b2a1f3 Mon Sep 17 00:00:00 2001 From: pgoyette Date: Sat, 17 Oct 2009 18:41:07 +0000 Subject: Replace local getline() function to avoid conflict with native NetBSD getline() OK wiz@ --- mail/metamail/distinfo | 3 ++- mail/metamail/patches/patch-at | 29 +++++++++++++++++++++++++++++ 2 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 mail/metamail/patches/patch-at (limited to 'mail/metamail') diff --git a/mail/metamail/distinfo b/mail/metamail/distinfo index 3e0ab4725f6..7b799a57f24 100644 --- a/mail/metamail/distinfo +++ b/mail/metamail/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.22 2008/05/10 11:52:14 obache Exp $ +$NetBSD: distinfo,v 1.23 2009/10/17 18:41:07 pgoyette Exp $ SHA1 (mm2.7.tar.Z) = 8f213baec9b17c05bcb066f616977a561757d7a6 RMD160 (mm2.7.tar.Z) = ae322cad0653140cbe7f0148ce48757df98c26b0 @@ -22,3 +22,4 @@ SHA1 (patch-ap) = ade6fba2254e7db3f9cf52acf453bb512c0a3d32 SHA1 (patch-aq) = 90f84381aaf91db03cecef84d9433c3ffd1152db SHA1 (patch-ar) = 21e137edd2bb1dc09048f7ef23e86859d698d848 SHA1 (patch-as) = 8d8c31f1ff508e9d7fc73a03a5f7ba63faa118ef +SHA1 (patch-at) = 762e66da70a6abbaeb84932d388abde4cb38f327 diff --git a/mail/metamail/patches/patch-at b/mail/metamail/patches/patch-at new file mode 100644 index 00000000000..7ffffbeee45 --- /dev/null +++ b/mail/metamail/patches/patch-at @@ -0,0 +1,29 @@ +--- uue.c.orig 2009-10-16 15:17:32.000000000 -0700 ++++ uue.c 2009-10-16 15:14:38.000000000 -0700 +@@ -30,7 +30,7 @@ + } + + +-getline (buf, size, fp) ++uue_getline (buf, size, fp) + char *buf; + int size; + FILE *fp; +@@ -70,7 +70,7 @@ + char buf[63]; + + while (1) { +- if (getline (buf, sizeof buf, infp) < 0) { ++ if (uue_getline (buf, sizeof buf, infp) < 0) { + fprintf (stderr, "Premature EOF!\n"); + return; + } +@@ -82,7 +82,7 @@ + } + } + while (1) { +- if (getline (buf, sizeof buf, infp) < 0) { ++ if (uue_getline (buf, sizeof buf, infp) < 0) { + fprintf (stderr, "Premature EOF!\n"); + return; + } -- cgit v1.2.3