mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-01-01 09:30:09 +01:00
try /dev/misc/apm_bios if /dev/apm_bios doesn't exist
This commit is contained in:
parent
bb99451f27
commit
9e94665cf9
1 changed files with 2 additions and 0 deletions
|
|
@ -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…
Add table
Reference in a new issue