summaryrefslogtreecommitdiff
path: root/src/nouveau_dri2.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nouveau_dri2.c')
-rw-r--r--src/nouveau_dri2.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/nouveau_dri2.c b/src/nouveau_dri2.c
index 8c1f289..69d9b04 100644
--- a/src/nouveau_dri2.c
+++ b/src/nouveau_dri2.c
@@ -1,3 +1,5 @@
+#include "xorg-server.h"
+#ifdef DRI2
#include "nv_include.h"
#include "dri2.h"
@@ -126,4 +128,4 @@ nouveau_dri2_takedown(ScreenPtr pScreen)
{
DRI2CloseScreen(pScreen);
}
-
+#endif