summaryrefslogtreecommitdiff
path: root/libkms++
diff options
context:
space:
mode:
authorAlejandro Hernandez <ajhernandez@ti.com>2016-01-22 09:35:28 -0500
committerTomi Valkeinen <tomi.valkeinen@ti.com>2016-01-22 16:27:09 +0200
commita43119ea3e1ab4b589e7f6499653c16692d37e13 (patch)
treee163bbfeb59ae4a5d104cff8ca55cd10bf83b99e /libkms++
parent34c6166a36b8169f7f96c2b07eb0af6fff837ffe (diff)
Add definition to DRM_CLIENT_CAP_ATOMIC undef case
This patch adds a missing DRM_MODE_ATOMIC_NONBLOCK definiton for cases were the kernel supports atomic modesetting but the libdrm version used does not. Without this patch a "'DRM_MODE_ATOMIC_NONBLOCK' was not declared in this scope" error is seen when trying compile the library Signed-off-by: Alejandro Hernandez <ajhernandez@ti.com>
Diffstat (limited to 'libkms++')
-rw-r--r--libkms++/atomicreq.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/libkms++/atomicreq.cpp b/libkms++/atomicreq.cpp
index 2e5d469..a865eec 100644
--- a/libkms++/atomicreq.cpp
+++ b/libkms++/atomicreq.cpp
@@ -11,6 +11,7 @@
#ifndef DRM_CLIENT_CAP_ATOMIC
#define DRM_MODE_ATOMIC_TEST_ONLY 0
+#define DRM_MODE_ATOMIC_NONBLOCK 0
struct _drmModeAtomicReq;
typedef struct _drmModeAtomicReq* drmModeAtomicReqPtr;