diff options
author | Phil Blundell <pb@reciva.com> | 2003-10-28 22:28:33 +0000 |
---|---|---|
committer | Phil Blundell <pb@reciva.com> | 2003-10-28 22:28:33 +0000 |
commit | 9e94665cf9cf0f74dff5b3cdaa4cde99e234fa45 (patch) | |
tree | 692a456ef1196190ebc056a794f0cde6859d69d5 | |
parent | bb99451f275827da580dcfa3b66cd0705fcc900a (diff) |
try /dev/misc/apm_bios if /dev/apm_bios doesn't exist
-rw-r--r-- | hw/kdrive/linux/linux.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/hw/kdrive/linux/linux.c b/hw/kdrive/linux/linux.c index eb52f160c..76ce58349 100644 --- a/hw/kdrive/linux/linux.c +++ b/hw/kdrive/linux/linux.c @@ -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; |