summaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorPhil Blundell <pb@reciva.com>2003-10-28 22:28:33 +0000
committerPhil Blundell <pb@reciva.com>2003-10-28 22:28:33 +0000
commit9e94665cf9cf0f74dff5b3cdaa4cde99e234fa45 (patch)
tree692a456ef1196190ebc056a794f0cde6859d69d5 /hw
parentbb99451f275827da580dcfa3b66cd0705fcc900a (diff)
try /dev/misc/apm_bios if /dev/apm_bios doesn't exist
Diffstat (limited to 'hw')
-rw-r--r--hw/kdrive/linux/linux.c2
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;