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

This commit is contained in:
Phil Blundell 2003-10-28 22:28:33 +00:00
parent bb99451f27
commit 9e94665cf9

View File

@ -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;