pkgsrc/sysutils/asapm/patches/patch-ad
kivinen ac997edf37 Fixed to work in NetBSD 1.6.* also. Tested on NetBSD 2.0 BETA
and NetBSD 1.6. Updated PKGREVISION and DESCR and MESSAGE
	texts.
2004-06-30 14:22:48 +00:00

17 lines
439 B
Text

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