--- io_static.c.orig	2004-07-18 02:25:12.000000000 +0100
+++ io_static.c	2004-07-18 02:25:21.000000000 +0100
@@ -3,6 +3,9 @@
 #include "io_cpu.h"
 #ifdef NETBSD
 #include "machine/sysarch.h"
+# ifdef __amd64__
+#  define i386_iopl x86_64_iopl
+# endif
 #endif
 
 static int OpenIO()
