$NetBSD: patch-ae,v 1.3 2013/12/17 06:45:40 asau Exp $ --- rvt/command.c.orig 2008-02-27 19:29:48.000000000 +0000 +++ rvt/command.c 2013-12-17 06:36:55.670505584 +0000 @@ -41,7 +41,11 @@ #include #include #include +#if defined(__FreeBSD__) +#include +#else #include +#endif #include #include #include "rvt.h" @@ -453,7 +457,6 @@ unsigned char *s; int count, sv; unsigned char mask = is_eightbit() ? 0xff : 0x7f; - extern int errno; if (com_stack_top > com_stack) return(*--com_stack_top);