[PATCH xf86-video-ati] Include xf86Pci.h for DRICreatePCIBusID with xserver Git master

Michel Dänzer michel at daenzer.net
Mon Jun 26 09:58:56 UTC 2017


From: Michel Dänzer <michel.daenzer at amd.com>

The declaration has been moved there from dri.h.

Signed-off-by: Michel Dänzer <michel.daenzer at amd.com>
---
 src/radeon_probe.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/radeon_probe.c b/src/radeon_probe.c
index aaace2b5f..19295f00c 100644
--- a/src/radeon_probe.c
+++ b/src/radeon_probe.c
@@ -48,7 +48,12 @@
 #include "xf86.h"
 
 #include "xf86drmMode.h"
+
+#if XORG_VERSION_CURRENT >= XORG_VERSION_NUMERIC(1,19,99,1,0)
+#include <xf86Pci.h>
+#else
 #include "dri.h"
+#endif
 
 #if defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
 #include <xf86_OSproc.h>
-- 
2.13.1



More information about the amd-gfx mailing list