From 05784edea7f250d810f73c251f6bd998e6a41445 Mon Sep 17 00:00:00 2001 From: obache Date: Thu, 30 Dec 2010 09:22:43 +0000 Subject: Add a workaround for DragonFly arpa/telnet.h. --- comms/tn3270/distinfo | 3 ++- comms/tn3270/patches/patch-aa | 17 +++++++++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 comms/tn3270/patches/patch-aa (limited to 'comms') diff --git a/comms/tn3270/distinfo b/comms/tn3270/distinfo index a000ebdd2ac..83ea26ee7d6 100644 --- a/comms/tn3270/distinfo +++ b/comms/tn3270/distinfo @@ -1,5 +1,6 @@ -$NetBSD: distinfo,v 1.1 2010/01/17 18:26:28 spz Exp $ +$NetBSD: distinfo,v 1.2 2010/12/30 09:22:43 obache Exp $ SHA1 (tn3270-0.20100116.tar.gz) = b550f2c240aa3b185b935c11ed36e75c8c574503 RMD160 (tn3270-0.20100116.tar.gz) = 59ca2fcaa8f44258eb9cb0069cf17e560754f2c9 Size (tn3270-0.20100116.tar.gz) = 156352 bytes +SHA1 (patch-aa) = 58d1edc5b4231705520acc6efdf09a66f09e9046 diff --git a/comms/tn3270/patches/patch-aa b/comms/tn3270/patches/patch-aa new file mode 100644 index 00000000000..72d8272b0f6 --- /dev/null +++ b/comms/tn3270/patches/patch-aa @@ -0,0 +1,17 @@ +$NetBSD: patch-aa,v 1.1 2010/12/30 09:22:43 obache Exp $ + +* workaround for DragonFly arpa/telnet.h, telopts will not defined + without TELOPTS (already defined in telnet/utilities.c) + +--- telnet/commands.c.orig 2010-01-17 18:00:03.000000000 +0000 ++++ telnet/commands.c +@@ -84,6 +84,9 @@ __RCSID("$NetBSD: commands.c,v 1.1.1.1 2 + #include + + #include ++#if defined(__DragonFly__) && !defined(TELOPTS) ++extern const char *telopts[NTELOPTS+1]; ++#endif + + #include "general.h" + #include "ring.h" -- cgit v1.2.3