summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Ball <cjb@laptop.org>2010-06-25 13:21:25 -0400
committerChris Ball <cjb@laptop.org>2010-06-26 20:52:42 -0400
commitedc7a40ed2aaedc03244b84ae0560a41fc7fa10c (patch)
tree7597ec28fe2e610a32d9430f96b52c90f491050e
parentf2b97df11d9cf95221860be07ccfbd32ef0a2c32 (diff)
xgi: Compile fix: guard XF86_VERSION_CURRENT with ifdef
-rwxr-xr-xsrc/xgi.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/xgi.h b/src/xgi.h
index 72f47d7..fd2c6fa 100755
--- a/src/xgi.h
+++ b/src/xgi.h
@@ -198,9 +198,11 @@ extern BOOL g_bRunTimeDebug;
#define XGINEWDRI
#undef XGINEWDRI2
+#ifdef XF86_VERSION_CURRENT
#if XF86_VERSION_CURRENT >= XF86_VERSION_NUMERIC(4,4,99,99,0) /* Adapt this when the time has come */
#define XGINEWDRI2
#endif
+#endif /* XF86_VERSION_CURRENT */
#include "xf86drm.h"
#include "sarea.h"