$NetBSD: patch-ab,v 1.2 2005/12/09 13:56:51 joerg Exp $ --- termio.c.orig 1995-08-20 18:05:21.000000000 +0000 +++ termio.c @@ -12,6 +12,9 @@ #include #ifdef BSD #include +#if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) || defined(__DragonFly__) +#include +#endif #else #ifdef OS2 #ifndef __EMX__ @@ -58,10 +61,6 @@ struct termio ntermio; /* charactoristi #endif /* OS2 */ #endif /* BSD */ -#ifndef OS2 -extern errno; /* System error number -- Necessary when compiling in BSD 1.13 */ -#endif - int nrow; /* Terminal size, rows. */ int ncol; /* Terminal size, columns. */