$NetBSD$

--- src/libvga.h.orig	Thu Jul  6 09:08:11 2000
+++ src/libvga.h
@@ -12,6 +12,14 @@
 #include <sys/io.h>
 #endif
 
+#ifdef __NetBSD__
+#include <sys/types.h>
+#include <machine/sysarch.h>
+#include <machine/pio.h>
+#define iopl(x) i386_iopl(x)
+extern int ioperm(unsigned long, unsigned long, int);
+#endif
+
 /* --------------------- Macro definitions shared by library modules */
 
 /* VGA index register ports */
@@ -358,7 +366,7 @@ extern unsigned char *__svgalib_give_gra
 
 #else
 
-#define SVGALIB_ACQUIRE_SIG SIGUNUSED
+#define SVGALIB_ACQUIRE_SIG SIGUSR2
 #define SVGALIB_RELEASE_SIG SIGPROF
 
 #endif
