[PATCH 1/3] xgi: Compile fix: guard XF86_VERSION_CURRENT with ifdef

Chris Ball cjb at laptop.org
Fri Jun 25 11:04:39 PDT 2010


---
 src/xgi.h |    2 ++
 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"
-- 
1.7.0.1



More information about the xorg-devel mailing list