From 4dfb05aaae9dc7a45294f60ebd3ad454a4707966 Mon Sep 17 00:00:00 2001 From: Thomas Klausner Date: Wed, 11 Nov 2015 13:32:05 +0100 Subject: Fix build when XSERVER_PLATFORM_BUS is not defined. Reviewed-by: Adam Jackson Signed-off-by: Thomas Klausner (cherry picked from commit 862cbf4c870c9ed913206c6ef4988bdb470e1c39) --- hw/xfree86/drivers/modesetting/driver.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hw/xfree86/drivers/modesetting/driver.c b/hw/xfree86/drivers/modesetting/driver.c index e53d3d45b..8f60eae57 100644 --- a/hw/xfree86/drivers/modesetting/driver.c +++ b/hw/xfree86/drivers/modesetting/driver.c @@ -90,6 +90,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, -- cgit v1.2.3