From 57e19874b7f5d3aa2ba1684994c58dea7bb2d93e Mon Sep 17 00:00:00 2001 From: Aleix Pol Date: Wed, 22 Jul 2020 19:13:18 +0200 Subject: [PATCH] drm_fourcc.h: only typedef uint32_t on the platforms it's needed On linux we have it defined on some headers. If we do hardcode it ourselves build will fail when linux/types.h is included afterwards. --- platformsupport/scenes/opengl/drm_fourcc.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/platformsupport/scenes/opengl/drm_fourcc.h b/platformsupport/scenes/opengl/drm_fourcc.h index 70d492a351..411f661fc9 100644 --- a/platformsupport/scenes/opengl/drm_fourcc.h +++ b/platformsupport/scenes/opengl/drm_fourcc.h @@ -27,8 +27,15 @@ //#include "drm.h" // These typedefs are copied from drm.h +#if defined(__linux__) + +#include +#include + +#else /* One of the BSDs */ typedef uint32_t __u32; typedef uint64_t __u64; +#endif #if defined(__cplusplus) extern "C" {