Commit 9e94665c authored by Phil Blundell's avatar Phil Blundell

try /dev/misc/apm_bios if /dev/apm_bios doesn't exist

parent bb99451f
......@@ -337,6 +337,8 @@ LinuxEnable (void)
* Open the APM driver
*/
LinuxApmFd = open ("/dev/apm_bios", 2);
if (LinuxApmFd < 0 && errno == ENOENT)
LinuxApmFd = open ("/dev/misc/apm_bios", 2);
if (LinuxApmFd >= 0)
{
LinuxApmRunning = TRUE;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment