From 5cd80c9b382dc7cfa5d321ebd2980883843097c9 Mon Sep 17 00:00:00 2001 From: Boram Park Date: Fri, 22 Jan 2016 18:57:20 +0900 Subject: checking drm version to avoid build-break Change-Id: I89805b3cb097994d35eba5d25a26ca16b20e3826 --- src/tdm_drm.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/tdm_drm.c') diff --git a/src/tdm_drm.c b/src/tdm_drm.c index b47afec..a07f70f 100644 --- a/src/tdm_drm.c +++ b/src/tdm_drm.c @@ -216,8 +216,10 @@ tdm_drm_init(tdm_display *dpy, tdm_error *error) goto failed; } +#if LIBDRM_MAJOR_VERSION >= 2 && LIBDRM_MINOR_VERSION >= 4 && LIBDRM_MICRO_VERSION >= 47 if (drmSetClientCap(drm_data->drm_fd, DRM_CLIENT_CAP_UNIVERSAL_PLANES, 1) < 0) TDM_WRN("Set DRM_CLIENT_CAP_UNIVERSAL_PLANES failed"); +#endif drm_data->mode_res = drmModeGetResources(drm_data->drm_fd); if (!drm_data->mode_res) -- cgit v1.2.3