glx: Fix build and warnings with -Dglx=dri -Dglx-direct=false
[mesa.git] / src / glx / dri_common.h
index 1b74397063be0678a4ecc5bede5dc8593ac82d4b..6c634d81608146484e4f37c8f7be76fa74cb3da8 100644 (file)
@@ -36,6 +36,8 @@
 #ifndef _DRI_COMMON_H
 #define _DRI_COMMON_H
 
+#ifdef GLX_DIRECT_RENDERING
+
 #include <GL/internal/dri_interface.h>
 #include <stdbool.h>
 #include "loader.h"
@@ -83,4 +85,6 @@ dri2_check_no_error(uint32_t flags, struct glx_context *share_context,
                     int major, unsigned *error);
 
 
+#endif /* GLX_DIRECT_RENDERING */
+
 #endif /* _DRI_COMMON_H */