Fix build with old libdrm headers

This commit is contained in:
Cameron Gutman 2022-01-30 22:56:22 -06:00
parent cf089fdfe9
commit 13dbad6f35

View file

@ -16,6 +16,11 @@ extern "C" {
#define DRM_FORMAT_P030 fourcc_code('P', '0', '3', '0')
#endif
// Regular P010 (not present in some old libdrm headers)
#ifndef DRM_FORMAT_P010
#define DRM_FORMAT_P010 fourcc_code('P', '0', '1', '0')
#endif
#include <unistd.h>
#include <fcntl.h>