$NetBSD: patch-ak,v 1.1.1.1 1999/12/20 03:05:16 hubertf Exp $ --- src/wmtuxtime.c.orig Fri Dec 17 14:07:03 1999 +++ src/wmtuxtime.c Mon Dec 20 03:37:14 1999 @@ -48,7 +48,14 @@ #include #include #include +#ifdef Linux #include +#endif +#ifdef __NetBSD__ +#include +#include +#include +#endif #ifdef __GLIBC__ #include #endif @@ -876,10 +883,17 @@ /* get the necessary I/O permissions */ +#ifdef __NetBSD__ + if (i386_iopl(3) == -1) { + warn("i386_iopl"); + return 1; + } +#else if (ioperm(0xb2, 1, 1)) { fprintf(stderr, "tuxtime: can't get I/O permissions.\n"); return 1; } +#endif /* do some quick checks on the laptop */