diff options
author | Samuel Thibault <[email protected]> | 2013-11-10 19:32:01 +0100 |
---|---|---|
committer | Maarten Lankhorst <[email protected]> | 2013-11-10 22:11:42 +0100 |
commit | a594cec7e3ef275c386054127a357110a19dd823 (patch) | |
tree | 9fad096391e7818a1f8ab16c3ff62326abe56c72 /src/egl/drivers/dri2/platform_x11.c | |
parent | 5442c0eae3a639d0c9daf447cdfecdbafb475658 (diff) |
EGL: fix build without libdrm
This fixes building EGL without libdrm support.
Signed-off-by: Samuel Thibault <[email protected]>
Diffstat (limited to 'src/egl/drivers/dri2/platform_x11.c')
-rw-r--r-- | src/egl/drivers/dri2/platform_x11.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/egl/drivers/dri2/platform_x11.c b/src/egl/drivers/dri2/platform_x11.c index a518db17a1e..c56a4138a64 100644 --- a/src/egl/drivers/dri2/platform_x11.c +++ b/src/egl/drivers/dri2/platform_x11.c @@ -33,7 +33,9 @@ #include <fcntl.h> #include <errno.h> #include <unistd.h> +#ifdef HAVE_DRM_PLATFORM #include <xf86drm.h> +#endif #include <sys/types.h> #include <sys/stat.h> @@ -606,6 +608,7 @@ dri2_x11_authenticate(_EGLDisplay *disp, uint32_t id) static EGLBoolean dri2_authenticate(_EGLDisplay *disp) { +#ifdef HAVE_DRM_PLATFORM struct dri2_egl_display *dri2_dpy = dri2_egl_display(disp); drm_magic_t magic; @@ -620,6 +623,9 @@ dri2_authenticate(_EGLDisplay *disp) } return EGL_TRUE; +#else + return EGL_FALSE; +#endif } static EGLBoolean |