mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-05-05 01:48:02 +02:00
xfree86/bsd: fix build on NetBSD/amd64.
The IOPL function for 64 bit systems is x86_64_iopl() there
(cherry picked from commit 238f8edcaf)
This commit is contained in:
parent
294369d4a6
commit
1b5f3a6527
2 changed files with 4 additions and 5 deletions
|
|
@ -202,6 +202,9 @@ xf86DisableIO(void)
|
|||
#endif /* USE_I386_IOPL */
|
||||
|
||||
#ifdef USE_AMD64_IOPL
|
||||
#ifdef __NetBSD__
|
||||
#define amd64_iopl(x) x86_64_iopl(x)
|
||||
#endif
|
||||
/***************************************************************************/
|
||||
/* I/O Permissions section */
|
||||
/***************************************************************************/
|
||||
|
|
|
|||
|
|
@ -384,11 +384,7 @@ if host_machine.system() == 'freebsd' or host_machine.system() == 'dragonfly'
|
|||
if host_machine.cpu_family() == 'x86' or host_machine.cpu_family() == 'x86_64' or host_machine.cpu_family() == 'aarch64'
|
||||
xorg_data.set('USE_DEV_IO', '1')
|
||||
endif
|
||||
elif host_machine.system() == 'netbsd'
|
||||
if host_machine.cpu_family() == 'x86' or host_machine.cpu_family() == 'x86_64'
|
||||
xorg_data.set('USE_I386_IOPL', '1')
|
||||
endif
|
||||
elif host_machine.system() == 'openbsd'
|
||||
elif host_machine.system() == 'netbsd' or host_machine.system() == 'openbsd'
|
||||
if host_machine.cpu_family() == 'x86'
|
||||
xorg_data.set('USE_I386_IOPL', '1')
|
||||
endif
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue