diff options
author | Jakob Bornecrantz <jakob@vmware.com> | 2010-01-21 21:28:14 +0100 |
---|---|---|
committer | Jakob Bornecrantz <jakob@vmware.com> | 2010-01-25 11:24:55 +0100 |
commit | 16cf7e14a6dee85fadc0ab4e7c066288c3362352 (patch) | |
tree | 5b95b4226a2e087bf4f0384339e87d9e4ffc697f /src/gallium | |
parent | 47d30b0c2c36f952cc14deefb9f937f1b0a9b531 (diff) |
st/xorg: Fix warning
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/state_trackers/xorg/xorg_dri2.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/state_trackers/xorg/xorg_dri2.c b/src/gallium/state_trackers/xorg/xorg_dri2.c index 468563e34c..83dc92e7fa 100644 --- a/src/gallium/state_trackers/xorg/xorg_dri2.c +++ b/src/gallium/state_trackers/xorg/xorg_dri2.c @@ -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; |