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;