st/xorg: Fix warning
authorJakob Bornecrantz <jakob@vmware.com>
Thu, 21 Jan 2010 20:28:14 +0000 (21:28 +0100)
committerJakob Bornecrantz <jakob@vmware.com>
Mon, 25 Jan 2010 10:24:55 +0000 (11:24 +0100)
src/gallium/state_trackers/xorg/xorg_dri2.c

index 468563e34c55b8903d09a8cdd2814cb7db05255d..83dc92e7fae812ee1bbcefc656a28c0b60786f45 100644 (file)
@@ -375,6 +375,7 @@ xorg_dri2_init(ScreenPtr pScreen)
     ScrnInfoPtr pScrn = xf86Screens[pScreen->myNum];
     modesettingPtr ms = modesettingPTR(pScrn);
     DRI2InfoRec dri2info;
+#if DRI2INFOREC_VERSION >= 2
     int major, minor;
 
     if (xf86LoaderCheckSymbol("DRI2Version")) {
@@ -384,6 +385,7 @@ xorg_dri2_init(ScreenPtr pScreen)
        major = 1;
        minor = 0;
     }
+#endif
 
     dri2info.version = DRI2INFOREC_VERSION;
     dri2info.fd = ms->fd;