egl_dri2: Fix compilation if udev devel files are not installed
authorBenjamin Franzke <benjaminfranzke@googlemail.com>
Sat, 2 Jul 2011 11:41:35 +0000 (13:41 +0200)
committerBenjamin Franzke <benjaminfranzke@googlemail.com>
Sat, 2 Jul 2011 11:56:27 +0000 (13:56 +0200)
NOTE: This is a candidate for the 7.11 branch.

src/egl/drivers/dri2/egl_dri2.h

index 83ea21e5dc85479420b5fde02c06f36eda654682..3854200bc694642ffd18e21a016214d1e0099626 100644 (file)
@@ -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;