Mesa (7.11): egl_dri2: Fix compilation if udev devel files are not installed
Benjamin Franzke
bnf at kemper.freedesktop.org
Tue Jul 12 08:07:04 UTC 2011
Module: Mesa
Branch: 7.11
Commit: a8907c6005d7935b4520255e12184c139471b5b9
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=a8907c6005d7935b4520255e12184c139471b5b9
Author: Benjamin Franzke <benjaminfranzke at googlemail.com>
Date: Sat Jul 2 13:41:35 2011 +0200
egl_dri2: Fix compilation if udev devel files are not installed
NOTE: This is a candidate for the 7.11 branch.
(cherry picked from commit b2d6375e6a64ac12f35f8a611ebf2016e4a6dd42)
---
src/egl/drivers/dri2/egl_dri2.h | 4 ++++
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 83ea21e..3854200 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;
More information about the mesa-commit
mailing list