Explorar o código

Fixed building with older libdrm headers

Sam Lantinga hai 1 ano
pai
achega
8949de3978
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      src/video/kmsdrm/SDL_kmsdrmvideo.h

+ 4 - 0
src/video/kmsdrm/SDL_kmsdrmvideo.h

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