| @@ -1,17 +1,17 @@ | | | @@ -1,17 +1,17 @@ |
1 | $NetBSD: patch-aa,v 1.1 2010/12/30 09:22:43 obache Exp $ | | 1 | $NetBSD: patch-aa,v 1.2 2011/12/26 03:11:10 joerg Exp $ |
2 | | | 2 | |
3 | * workaround for DragonFly arpa/telnet.h, telopts will not defined | | 3 | * workaround for DragonFly arpa/telnet.h, telopts will not defined |
4 | without TELOPTS (already defined in telnet/utilities.c) | | 4 | without TELOPTS (already defined in telnet/utilities.c) |
5 | | | 5 | |
6 | --- telnet/commands.c.orig 2010-01-17 18:00:03.000000000 +0000 | | 6 | --- telnet/commands.c.orig 2010-01-17 18:00:03.000000000 +0000 |
7 | +++ telnet/commands.c | | 7 | +++ telnet/commands.c |
8 | @@ -84,6 +84,9 @@ __RCSID("$NetBSD: commands.c,v 1.1.1.1 2 | | 8 | @@ -84,6 +84,9 @@ |
9 | #include <unistd.h> | | 9 | #include <unistd.h> |
10 | | | 10 | |
11 | #include <arpa/telnet.h> | | 11 | #include <arpa/telnet.h> |
12 | +#if defined(__DragonFly__) && !defined(TELOPTS) | | 12 | +#if defined(__DragonFly__) && !defined(TELOPTS) |
13 | +extern const char *telopts[NTELOPTS+1]; | | 13 | +extern const char *telopts[NTELOPTS+1]; |
14 | +#endif | | 14 | +#endif |
15 | | | 15 | |
16 | #include "general.h" | | 16 | #include "general.h" |
17 | #include "ring.h" | | 17 | #include "ring.h" |