pkgsrc/sysutils/kapm/patches/patch-ab
hubertf 100744163a KDE-based APM utility (battery monitor).
Whacked heavily to work on NetBSD.
1999-11-02 21:54:47 +00:00

30 lines
991 B
Text

$NetBSD: patch-ab,v 1.1.1.1 1999/11/02 21:54:47 hubertf Exp $
--- kapm/apm.h.orig Tue Nov 2 06:27:22 1999
+++ kapm/apm.h Tue Nov 2 06:31:39 1999
@@ -1,6 +1,7 @@
/* apm.h -- Header file for sample APM interface routines
* Created: Mon Jan 8 11:40:50 1996 by r.faith@ieee.org
* Revised: Mon Aug 2 23:57:43 1999 by bodnar42@bodnar42.dhs.org
+ * NetBSD: Tue Nov 2 06:30:40 1999 by hubertf@netbsd.org
* Copyright 1996 Rickard E. Faith (r.faith@ieee.org)
*
* This library is free software; you can redistribute it and/or modify it
@@ -22,10 +23,14 @@
#ifndef APM_H
#define APM_H
-#define APM_PROC "/proc/apm"
-#define APM_DEVICE "/dev/apm_bios"
+#if defined(Linux)
+# define APM_PROC "/proc/apm"
+# define APM_DEVICE "/dev/apm_bios"
-#define APM_32_BIT_SUPPORT 0x0002
+# define APM_32_BIT_SUPPORT 0x0002
+#elif defined(__NetBSD__)
+# define APM_PROC "/dev/apm"
+#endif /* Linux/__NetBSD__ */
typedef struct apm_info {
char driver_version[10];