Hi Garst,

"Garst R. Reese" <[EMAIL PROTECTED]> writes:
> In apm.c
> gcc-2.95.2
> You did say it compiled eh Stephen?

Sorry about that, I compiled with MAGIC_SYSREQ configured ...
try this.

diff -ruN 2.3.26pre1/arch/i386/kernel/apm.c 2.3.26pre1-APM/arch/i386/kernel/apm.c
--- 2.3.26pre1/arch/i386/kernel/apm.c   Fri Nov  5 11:47:15 1999
+++ 2.3.26pre1-APM/arch/i386/kernel/apm.c       Fri Nov  5 12:04:56 1999
@@ -150,7 +150,9 @@
 
 extern unsigned long get_cmos_time(void);
 
+#ifdef CONFIG_MAGIC_SYSRQ
 extern void (*sysrq_power_off)(void);
+#endif
 
 /*
  * The apm_bios device is one of the misc char devices.
@@ -1367,7 +1369,9 @@
        /* Install our power off handler.. */
        if (power_off_enabled)
                acpi_power_off = apm_power_off;
+#ifdef CONFIG_MAGIC_SYSRQ
        sysrq_power_off = apm_power_off;
+#endif
 
        apm_mainloop();
        return 0;

Cheers,
Stephen
--
Stephen Rothwell                    [EMAIL PROTECTED]
http://linuxcare.com..au/sfr/

Reply via email to