[PATCH:xf86-video-modesetting] Fix build when XSERVER_PLATFORM_BUS is not defined.

Thomas Klausner wiz at NetBSD.org
Fri Nov 6 01:30:33 PST 2015


From: Jared McNeill <jmcneill at NetBSD.org>

---
 src/driver.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/driver.c b/src/driver.c
index d99b027..21326d9 100644
--- a/src/driver.c
+++ b/src/driver.c
@@ -93,6 +93,10 @@ static const struct pci_id_match ms_device_match[] = {
 };
 #endif
 
+#ifndef XSERVER_PLATFORM_BUS
+struct xf86_platform_device;
+#endif
+
 #ifdef XSERVER_PLATFORM_BUS
 static Bool ms_platform_probe(DriverPtr driver,
                           int entity_num, int flags, struct xf86_platform_device *device,
-- 
2.6.2



More information about the xorg-devel mailing list