summaryrefslogtreecommitdiffstats
path: root/src/egl/drivers/dri2/egl_dri2.h
diff options
context:
space:
mode:
authorBenjamin Franzke <[email protected]>2011-07-02 13:41:35 +0200
committerBenjamin Franzke <[email protected]>2011-07-02 13:56:27 +0200
commitb2d6375e6a64ac12f35f8a611ebf2016e4a6dd42 (patch)
treeee4ac45e17709e49c021ae6a5d550ee86aade062 /src/egl/drivers/dri2/egl_dri2.h
parentf2001df508fda599a18b3586d2775e970a3db13a (diff)
egl_dri2: Fix compilation if udev devel files are not installed
NOTE: This is a candidate for the 7.11 branch.
Diffstat (limited to 'src/egl/drivers/dri2/egl_dri2.h')
-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;