From a43119ea3e1ab4b589e7f6499653c16692d37e13 Mon Sep 17 00:00:00 2001 From: Alejandro Hernandez Date: Fri, 22 Jan 2016 09:35:28 -0500 Subject: 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 --- libkms++/atomicreq.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'libkms++') 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; -- cgit v1.2.3