pkgsrc/sysutils/asapm/patches/patch-ad
kivinen 47e70bc2f4 Implemented support for envsys to get battery etc information
from acpi. Only tested on one laptop, I do not know whether
	the envsys names for the acpi devices are stable enough to be
	used, but I didn't find any other way to distinguish different
	things. As this laptop does not support apm, I hope it still
	works after these modifications.
2004-06-09 21:00:05 +00:00

13 lines
368 B
Text

$NetBSD: patch-ad,v 1.1 2004/06/09 21:00:05 kivinen Exp $
--- state.h.orig 1999-03-09 12:35:24.000000000 +0200
+++ state.h
@@ -13,6 +13,8 @@
/* file -> APM device */
#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
#define APM_PROC "/dev/apm"
+#include <paths.h>
+#define SYSMON_DEV _PATH_SYSMON
#else
#define APM_PROC "/proc/apm"
#endif