Index: ui/ozone/platform/drm/gpu/drm_device.cc |
diff --git a/ui/ozone/platform/drm/gpu/drm_device.cc b/ui/ozone/platform/drm/gpu/drm_device.cc |
index 81098fa72cb158bb29cf8a7165d88ef1066ce8b5..f2e2d724584cb4d4e973ca51a3de0c7e40a93f00 100644 |
--- a/ui/ozone/platform/drm/gpu/drm_device.cc |
+++ b/ui/ozone/platform/drm/gpu/drm_device.cc |
@@ -679,6 +679,18 @@ |
bool DrmDevice::SetCapability(uint64_t capability, uint64_t value) { |
DCHECK(file_.IsValid()); |
+#ifndef DRM_IOCTL_SET_CLIENT_CAP |
+// drmSetClientCap was introduced in a later version of libdrm than the wheezy |
+// sysroot supplies. |
+// TODO(thomasanderson): Remove this when support for the wheezy sysroot is |
+// dropped in favor of jessie. |
+#define DRM_IOCTL_SET_CLIENT_CAP DRM_IOW(0x0d, struct drm_set_client_cap) |
+ struct drm_set_client_cap { |
+ __u64 capability; |
+ __u64 value; |
+ }; |
+#endif |
+ |
struct drm_set_client_cap cap = {capability, value}; |
return !drmIoctl(file_.GetPlatformFile(), DRM_IOCTL_SET_CLIENT_CAP, &cap); |
} |