Add macros for compatibility with older libdrm

tight-png
Andri Yngvason 2019-09-10 18:17:45 +00:00
parent 1d5117554f
commit 3ce98968bb
1 changed files with 8 additions and 0 deletions

View File

@ -29,6 +29,14 @@
#include <libdrm/drm_fourcc.h> #include <libdrm/drm_fourcc.h>
#include <pixman.h> #include <pixman.h>
#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 DEFAULT_NAME "Neat VNC"
#define READ_BUFFER_SIZE 4096 #define READ_BUFFER_SIZE 4096
#define MSG_BUFFER_SIZE 4096 #define MSG_BUFFER_SIZE 4096