summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Klausner <wiz@NetBSD.org>2015-11-11 13:32:05 +0100
committerAdam Jackson <ajax@redhat.com>2016-01-27 09:53:33 -0500
commit4dfb05aaae9dc7a45294f60ebd3ad454a4707966 (patch)
tree3eef2e500d07bb7e85641bb4071728cb18bd6ebc
parent88f2aa2940b6fb9deea0a1b53d05df02912dc17c (diff)
Fix build when XSERVER_PLATFORM_BUS is not defined.
Reviewed-by: Adam Jackson <ajax@redhat.com> Signed-off-by: Thomas Klausner <wiz@NetBSD.org> (cherry picked from commit 862cbf4c870c9ed913206c6ef4988bdb470e1c39)
-rw-r--r--hw/xfree86/drivers/modesetting/driver.c4
1 files changed, 4 insertions, 0 deletions
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,