fix build with updated server

This commit is contained in:
Dave Airlie 2012-09-07 11:07:14 +10:00
parent 6441943ab3
commit 84778c347e

View File

@ -26,7 +26,7 @@ index 6de8409..40f4921 100644
if (drv->platformProbe != NULL) { if (drv->platformProbe != NULL) {
foundScreen = xf86platformProbeDev(drv); foundScreen = xf86platformProbeDev(drv);
} }
+ if (ServerIsNotSeat0) + if (ServerIsNotSeat0())
+ return foundScreen; + return foundScreen;
#endif #endif
@ -35,7 +35,7 @@ index 6de8409..40f4921 100644
{ {
#ifdef XSERVER_PLATFORM_BUS #ifdef XSERVER_PLATFORM_BUS
xf86platformProbe(); xf86platformProbe();
+ if (ServerIsNotSeat0) + if (ServerIsNotSeat0())
+ return; + return;
#endif #endif
#ifdef XSERVER_LIBPCIACCESS #ifdef XSERVER_LIBPCIACCESS
@ -49,7 +49,7 @@ index 502d3c4..0b06e16 100644
} }
else { else {
+ /* for non-seat0 servers assume first device is the master */ + /* for non-seat0 servers assume first device is the master */
+ if (ServerIsNotSeat0) + if (ServerIsNotSeat0())
+ break; + break;
if (xf86_platform_devices[j].pdev) { if (xf86_platform_devices[j].pdev) {
if (xf86IsPrimaryPlatform(&xf86_platform_devices[j])) if (xf86IsPrimaryPlatform(&xf86_platform_devices[j]))