summaryrefslogtreecommitdiff
path: root/comms
diff options
context:
space:
mode:
authorobache <obache@pkgsrc.org>2010-12-30 09:22:43 +0000
committerobache <obache@pkgsrc.org>2010-12-30 09:22:43 +0000
commit05784edea7f250d810f73c251f6bd998e6a41445 (patch)
tree77aaded6dbb529cf2d320ef0de86b2972e7b743f /comms
parent72c0910c0b5ec5876c4c03abf13bb843ce66037c (diff)
downloadpkgsrc-05784edea7f250d810f73c251f6bd998e6a41445.tar.gz
Add a workaround for DragonFly arpa/telnet.h.
Diffstat (limited to 'comms')
-rw-r--r--comms/tn3270/distinfo3
-rw-r--r--comms/tn3270/patches/patch-aa17
2 files changed, 19 insertions, 1 deletions
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 <unistd.h>
+
+ #include <arpa/telnet.h>
++#if defined(__DragonFly__) && !defined(TELOPTS)
++extern const char *telopts[NTELOPTS+1];
++#endif
+
+ #include "general.h"
+ #include "ring.h"