try /dev/misc/apm_bios if /dev/apm_bios doesn't exist
This commit is contained in:
parent
bb99451f27
commit
9e94665cf9
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user