$NetBSD: patch-ab,v 1.2 2000/07/30 08:08:13 jlam Exp $

--- battery/read-battery.h.orig	Fri Feb 11 11:27:56 2000
+++ battery/read-battery.h	Sun Jul 30 02:24:50 2000
@@ -18,6 +18,11 @@
 #include <fcntl.h>
 #include <machine/apm_bios.h>
 #define APMDEV "/dev/apm"
+#elif __NetBSD__ && defined(NETBSD_APM)
+#include <fcntl.h>
+#include <sys/ioctl.h>
+#include <machine/apmvar.h>
+#define APMDEV "/dev/apm"
 #endif
 
 /* Prototypes */ 
