diff options
author | U. Artie Eoff <ullysses.a.eoff@intel.com> | 2017-10-05 17:28:30 -0700 |
---|---|---|
committer | Nicolas Dufresne <nicolas.dufresne@collabora.com> | 2017-10-05 20:50:37 -0400 |
commit | ddba9e40f24548d8ec0e98f9684e1a1227ac5ee8 (patch) | |
tree | af91a4e2c20c2edd969d139efc9f76eca66ed266 | |
parent | 2057a36d04e8444911a1264fffcb6d8f8cba3f7c (diff) |
kms: Fix compilation error when libdrm < 2.4.68
DRM_RDWR was not defined until libdrm 2.4.68. However,
in configure.ac we only require libdrm >= 2.4.55.
Seems silly to to bump minimum libdrm version for a simple
define. Thus, define DRM_RDWR if it's not defined.
This fixes compilation error introduced in:
commit 922031b0f98bf5c7b01f4431d1c08617f65865f7
Author: Nicolas Dufresne <nicolas.dufresne@collabora.com>
Date: Tue Sep 12 12:07:13 2017 -0400
kms: Export DMABuf from Dumb buffer when possible
https://bugzilla.gnome.org/show_bug.cgi?id=787593
Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com>
-rw-r--r-- | sys/kms/gstkmsallocator.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/kms/gstkmsallocator.c b/sys/kms/gstkmsallocator.c index 4118e17f1..17e851d32 100644 --- a/sys/kms/gstkmsallocator.c +++ b/sys/kms/gstkmsallocator.c @@ -43,6 +43,10 @@ #include "gstkmsallocator.h" #include "gstkmsutils.h" +#ifndef DRM_RDWR +#define DRM_RDWR O_RDWR +#endif + #define GST_CAT_DEFAULT kmsallocator_debug GST_DEBUG_CATEGORY_STATIC (GST_CAT_DEFAULT); |