From d07c66985f1f8620d6864ad801d4265eb0d6940e Mon Sep 17 00:00:00 2001 From: Victor Brekenfeld Date: Thu, 22 Nov 2018 11:40:56 +0100 Subject: [PATCH] gbm: CursorBackend depends on backend_drm_legacy --- src/backend/drm/gbm/surface.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/backend/drm/gbm/surface.rs b/src/backend/drm/gbm/surface.rs index bff5f2c..97f4e5c 100644 --- a/src/backend/drm/gbm/surface.rs +++ b/src/backend/drm/gbm/surface.rs @@ -9,6 +9,7 @@ use std::cell::{Cell, RefCell}; use std::os::unix::io::AsRawFd; use std::rc::Rc; +#[cfg(feature = "backend_drm_legacy")] use backend::drm::legacy::LegacyDrmDevice; use backend::graphics::CursorBackend; use backend::graphics::SwapBuffersError; @@ -225,6 +226,7 @@ where */ // But for now got to do this: +#[cfg(feature = "backend_drm_legacy")] impl<'a, A: AsRawFd + 'static> CursorBackend<'a> for GbmSurfaceInternal> { type CursorFormat = &'a ImageBuffer, Vec>; type Error = Error; @@ -353,6 +355,7 @@ impl Surface for GbmSurface { } } +#[cfg(feature = "backend_drm_legacy")] impl<'a, A: AsRawFd + 'static> CursorBackend<'a> for GbmSurface> { type CursorFormat = &'a ImageBuffer, Vec>; type Error = Error;