Fix build on FreeBSD/PowerPC architecture.

This commit is contained in:
Peter Grehan 2023-10-05 19:35:40 +03:00 committed by Alan Coopersmith
parent b1abb2efcb
commit 84ff599d0b

View File

@ -79,7 +79,11 @@ xf86DisableIO()
{
if (ioBase != MAP_FAILED) {
#if defined(__FreeBSD__)
munmap(__DEVOLATILE(unsigned char *, ioBase), 0x10000);
#else
munmap(__UNVOLATILE(ioBase), 0x10000);
#endif
ioBase = MAP_FAILED;
}
}