24 lines
770 B
Plaintext
24 lines
770 B
Plaintext
|
$OpenBSD: patch-src_apm_c,v 1.3 2002/07/29 03:46:28 jcs Exp $
|
||
|
--- src/apm.c.orig Sun Jul 28 22:36:18 2002
|
||
|
+++ src/apm.c Sun Jul 28 22:38:27 2002
|
||
|
@@ -159,7 +159,8 @@
|
||
|
|
||
|
/* ------- 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 @@
|
||
|
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
|