$NetBSD: patch-ab,v 1.2 1998/08/24 11:47:35 frueauf Exp $ --- port.C.orig Mon Oct 27 09:29:35 1997 +++ port.C Sun Aug 23 21:11:00 1998 @@ -30,6 +30,10 @@ #endif #elif defined(FREEBSD) #include +#elif defined(NETBSD) +#include +#include +#include /* XXX x86-specific */ #elif defined(BSDI) #include #elif defined(LYNX) @@ -60,6 +64,11 @@ #elif defined(FREEBSD) if ((devio = fopen("/dev/io", "r+")) == NULL) { perror("fopen /dev/io"); + return; + } +#elif defined(NETBSD) + if (i386_iopl(3) != 0) { + perror("i386_iopl"); return; } #elif defined(LYNX)