summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/egl/drivers/dri2/egl_dri2.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/egl/drivers/dri2/egl_dri2.h b/src/egl/drivers/dri2/egl_dri2.h
index 83ea21e5dc8..3854200bc69 100644
--- a/src/egl/drivers/dri2/egl_dri2.h
+++ b/src/egl/drivers/dri2/egl_dri2.h
@@ -44,7 +44,9 @@
#include <GL/gl.h>
#include <GL/internal/dri_interface.h>
+#ifdef HAVE_DRM_PLATFORM
#include <gbm_driint.h>
+#endif
#include "eglconfig.h"
#include "eglcontext.h"
@@ -82,7 +84,9 @@ struct dri2_egl_display
__DRIimageExtension *image;
int fd;
+#ifdef HAVE_DRM_PLATFORM
struct gbm_dri_device *gbm_dri;
+#endif
char *device_name;
char *driver_name;