Thu Dec 30 09:22:44 2010 UTC ()
Add a workaround for DragonFly arpa/telnet.h.
(obache)
diff -r1.1 -r1.2 pkgsrc/comms/tn3270/distinfo
diff -r0 -r1.1 pkgsrc/comms/tn3270/patches/patch-aa
--- pkgsrc/comms/tn3270/distinfo 2010/01/17 18:26:28 1.1
+++ pkgsrc/comms/tn3270/distinfo 2010/12/30 09:22:43 1.2
| @@ -1,5 +1,6 @@ | | | @@ -1,5 +1,6 @@ |
1 | $NetBSD: distinfo,v 1.1 2010/01/17 18:26:28 spz Exp $ | | 1 | $NetBSD: distinfo,v 1.2 2010/12/30 09:22:43 obache Exp $ |
2 | | | 2 | |
3 | SHA1 (tn3270-0.20100116.tar.gz) = b550f2c240aa3b185b935c11ed36e75c8c574503 | | 3 | SHA1 (tn3270-0.20100116.tar.gz) = b550f2c240aa3b185b935c11ed36e75c8c574503 |
4 | RMD160 (tn3270-0.20100116.tar.gz) = 59ca2fcaa8f44258eb9cb0069cf17e560754f2c9 | | 4 | RMD160 (tn3270-0.20100116.tar.gz) = 59ca2fcaa8f44258eb9cb0069cf17e560754f2c9 |
5 | Size (tn3270-0.20100116.tar.gz) = 156352 bytes | | 5 | Size (tn3270-0.20100116.tar.gz) = 156352 bytes |
| | | 6 | SHA1 (patch-aa) = 58d1edc5b4231705520acc6efdf09a66f09e9046 |
$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"