From 3ce98968bb9f0ea2642258943a7e6073149c944d Mon Sep 17 00:00:00 2001 From: Andri Yngvason Date: Tue, 10 Sep 2019 18:17:45 +0000 Subject: [PATCH] Add macros for compatibility with older libdrm --- src/server.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/server.c b/src/server.c index 9d2d450..22ad76b 100644 --- a/src/server.c +++ b/src/server.c @@ -29,6 +29,14 @@ #include #include +#ifndef DRM_FORMAT_INVALID +#define DRM_FORMAT_INVALID 0 +#endif + +#ifndef DRM_FORMAT_MOD_LINEAR +#define DRM_FORMAT_MOD_LINEAR DRM_FORMAT_MOD_NONE +#endif + #define DEFAULT_NAME "Neat VNC" #define READ_BUFFER_SIZE 4096 #define MSG_BUFFER_SIZE 4096