24 lines
824 B
Plaintext
24 lines
824 B
Plaintext
$OpenBSD: patch-src_apm_c,v 1.4 2003/01/01 21:21:01 naddy Exp $
|
|
--- src/apm.c.orig Tue May 14 21:26:37 2002
|
|
+++ src/apm.c Wed Jan 1 22:16:09 2003
|
|
@@ -159,7 +159,8 @@ read_linux_apm_data(void)
|
|
|
|
/* ------- NetBSD ------------------------------------------------------- */
|
|
|
|
-#if (defined(__NetBSD__) || defined(__OpenBSD__)) && defined(__i386__)
|
|
+#if (defined(__NetBSD__) || defined(__OpenBSD__)) && (defined(__i386__) || \
|
|
+defined(__powerpc__))
|
|
|
|
#include <machine/apmvar.h>
|
|
#define APMDEV "/dev/apm"
|
|
@@ -242,7 +243,8 @@ setup_apm_interface(void)
|
|
available = TRUE;
|
|
#endif
|
|
|
|
-#if (defined(__NetBSD__) || defined(__OpenBSD__)) && defined(__i386__)
|
|
+#if (defined(__NetBSD__) || defined(__OpenBSD__)) && (defined(__i386__) || \
|
|
+defined(__powerpc__))
|
|
read_apm_data = read_netbsd_apm_data;
|
|
available = TRUE;
|
|
#endif
|