aboutsummaryrefslogtreecommitdiff
path: root/x11-drivers
diff options
context:
space:
mode:
authorEmmanuel Vadot <manu@FreeBSD.org>2021-12-02 13:56:56 +0000
committerEmmanuel Vadot <manu@FreeBSD.org>2021-12-02 14:09:36 +0000
commit40e9ad50deb01802e7c8ae1aed068d3e2ab78d69 (patch)
tree406abb669ceed2ae12607839dd5882609fa8d199 /x11-drivers
parent86847f565e819120c289c14ed1499f54fde2d1a0 (diff)
downloadports-40e9ad50deb01802e7c8ae1aed068d3e2ab78d69.tar.gz
ports-40e9ad50deb01802e7c8ae1aed068d3e2ab78d69.zip
x11-drivers/xf86-video-vmware: Fix build with latest libdrm
libdrm includes stdbool.h but xorg redefines it in xf86Opt.h Simply undef our bool to fix this failure. PR: 259949 Sponsored by: Beckhoff Automation GmbH & Co. KG
Diffstat (limited to 'x11-drivers')
-rw-r--r--x11-drivers/xf86-video-vmware/files/patch-saa_saa.h10
-rw-r--r--x11-drivers/xf86-video-vmware/files/patch-vmwgfx_vmwgfx__driver.h10
2 files changed, 20 insertions, 0 deletions
diff --git a/x11-drivers/xf86-video-vmware/files/patch-saa_saa.h b/x11-drivers/xf86-video-vmware/files/patch-saa_saa.h
new file mode 100644
index 000000000000..f730407cefcf
--- /dev/null
+++ b/x11-drivers/xf86-video-vmware/files/patch-saa_saa.h
@@ -0,0 +1,10 @@
+--- saa/saa.h.orig 2021-12-02 13:55:48 UTC
++++ saa/saa.h
+@@ -40,6 +40,7 @@
+ #else
+ #include <xorg-server.h>
+ #endif
++#undef bool
+ #include <xf86.h>
+ #include <damage.h>
+ #include <picturestr.h>
diff --git a/x11-drivers/xf86-video-vmware/files/patch-vmwgfx_vmwgfx__driver.h b/x11-drivers/xf86-video-vmware/files/patch-vmwgfx_vmwgfx__driver.h
new file mode 100644
index 000000000000..36a748b34756
--- /dev/null
+++ b/x11-drivers/xf86-video-vmware/files/patch-vmwgfx_vmwgfx__driver.h
@@ -0,0 +1,10 @@
+--- vmwgfx/vmwgfx_driver.h.orig 2021-12-02 13:55:36 UTC
++++ vmwgfx/vmwgfx_driver.h
+@@ -40,6 +40,7 @@
+ #include <xf86drm.h>
+ #include <xf86drmMode.h>
+ #include <xorg-server.h>
++#undef bool
+ #include <xf86.h>
+ #include <xf86Crtc.h>
+ #include <xf86xv.h>