Only call xf86platformVTProbe() when it's defined
authorAlan Coopersmith <alan.coopersmith@oracle.com>
Wed, 24 Apr 2013 22:24:31 +0000 (15:24 -0700)
committerAlan Coopersmith <alan.coopersmith@oracle.com>
Fri, 26 Apr 2013 04:44:09 +0000 (21:44 -0700)
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>
hw/xfree86/common/xf86Events.c

index ea18420..7a949fd 100644 (file)
@@ -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();
     }