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 <alan.coopersmith@oracle.com>
Reviewed-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
Alan Coopersmith 2013-04-24 15:24:31 -07:00 committed by Matt Dew
parent 3425975234
commit 187cb5a037

View file

@ -562,8 +562,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();
}