aboutsummaryrefslogtreecommitdiff
path: root/x11-servers/xorg-server/files/patch-hw_xfree86_os-support_bsd_ppc__video.c
blob: fbdd9ef107355d9f1b2405b828fc16ce260675f2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--- hw/xfree86/os-support/bsd/ppc_video.c.orig	2016-07-15 16:18:11 UTC
+++ hw/xfree86/os-support/bsd/ppc_video.c
@@ -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;
     }
 }