From: Alan Coopersmith Date: Wed, 24 Apr 2013 22:24:31 +0000 (-0700) Subject: Only call xf86platformVTProbe() when it's defined X-Git-Tag: xorg-server-1.14.99.2~92^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9878e097a7de2f86eff0dcfd9fe5d83b162197ec;p=platform%2Fupstream%2Fxorg-server.git 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 --- diff --git a/hw/xfree86/common/xf86Events.c b/hw/xfree86/common/xf86Events.c index ea18420..7a949fd 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(); }