$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 @@
 #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"
