Fixed building with older libdrm headers

(cherry picked from commit 8949de3978)
(cherry picked from commit 88bbab275f)
This commit is contained in:
Sam Lantinga 2024-06-26 12:18:43 -07:00
parent 0811b4dc51
commit ed86b02df8
1 changed files with 4 additions and 0 deletions

View File

@ -33,6 +33,10 @@
#include <gbm.h>
#include <EGL/egl.h>
#ifndef DRM_MODE_FB_MODIFIERS
#define DRM_MODE_FB_MODIFIERS 2
#endif
#ifndef DRM_MODE_PAGE_FLIP_ASYNC
#define DRM_MODE_PAGE_FLIP_ASYNC 2
#endif