From b2d6375e6a64ac12f35f8a611ebf2016e4a6dd42 Mon Sep 17 00:00:00 2001 From: Benjamin Franzke Date: Sat, 2 Jul 2011 13:41:35 +0200 Subject: [PATCH] egl_dri2: Fix compilation if udev devel files are not installed NOTE: This is a candidate for the 7.11 branch. --- src/egl/drivers/dri2/egl_dri2.h | 4 ++++ 1 file changed, 4 insertions(+) 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 #include +#ifdef HAVE_DRM_PLATFORM #include +#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; -- 2.30.2