openbsd-ports/x11/gnome/applets/patches/patch-battery_read-battery_h
2001-09-13 21:23:08 +00:00

13 lines
492 B
Plaintext

$OpenBSD: patch-battery_read-battery_h,v 1.1.1.1 2001/09/13 21:23:08 todd Exp $
--- battery/read-battery.h.orig Mon Feb 12 23:48:12 2001
+++ battery/read-battery.h Tue Aug 28 14:14:17 2001
@@ -18,7 +18,7 @@ typedef struct apm_info {
#include <fcntl.h>
#include <machine/apm_bios.h>
#define APMDEV "/dev/apm"
-#elif __NetBSD__ && defined(NETBSD_APM)
+#elif (__NetBSD__ && defined(NETBSD_APM)) || defined(__OpenBSD__)
#include <fcntl.h>
#include <sys/ioctl.h>
#include <machine/apmvar.h>