mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-26 08:15:24 +00:00
try /dev/misc/apm_bios if /dev/apm_bios doesn't exist
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user