From 9878e097a7de2f86eff0dcfd9fe5d83b162197ec Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Wed, 24 Apr 2013 15:24:31 -0700 Subject: [PATCH] Only call xf86platformVTProbe() when it's defined Fixes build on non-udev systems, since XSERVER_PLATFORM_BUS is only defined in configure.ac if $CONFIG_UDEV_KMS is true. Signed-off-by: Alan Coopersmith Reviewed-by: Dave Airlie --- hw/xfree86/common/xf86Events.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hw/xfree86/common/xf86Events.c b/hw/xfree86/common/xf86Events.c index ea1842069..7a949fd74 100644 --- a/hw/xfree86/common/xf86Events.c +++ b/hw/xfree86/common/xf86Events.c @@ -561,8 +561,10 @@ xf86VTSwitch(void) for (ih = InputHandlers; ih; ih = ih->next) xf86EnableInputHandler(ih); +#ifdef XSERVER_PLATFORM_BUS /* check for any new output devices */ xf86platformVTProbe(); +#endif OsReleaseSIGIO(); }