mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-10 17:35:59 +00:00
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 922031b0f9
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>
This commit is contained in:
parent
2057a36d04
commit
ddba9e40f2
1 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue