[PATCH xf86-video-nouveau] Fix building on older servers without xf86platformBus.h

Hans de Goede hdegoede at redhat.com
Fri Apr 11 05:22:52 PDT 2014


Signed-off-by: Hans de Goede <hdegoede at redhat.com>
---
 src/nv_type.h | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/nv_type.h b/src/nv_type.h
index 6ee36d7..bfc000e 100644
--- a/src/nv_type.h
+++ b/src/nv_type.h
@@ -8,7 +8,12 @@
 #include <stdbool.h>
 #include <stdint.h>
 #include "xf86Crtc.h"
+
+#ifdef XSERVER_PLATFORM_BUS
 #include "xf86platformBus.h"
+#else
+struct xf86_platform_device; /* To avoid needing lots of #ifdef-s */
+#endif
 
 #if XF86_CRTC_VERSION >= 5
 #define NOUVEAU_PIXMAP_SHARING 1
-- 
1.9.0



More information about the xorg-devel mailing list