From 7ca3bc1d6f36fd1751902e1976feceb427e6aba3 Mon Sep 17 00:00:00 2001 From: Scott Anderson Date: Mon, 15 Oct 2018 11:39:35 +1300 Subject: Fix libdrm includes This removes any assumptions about how the libdrm headers are installed, and uses the pkg-config include directories as we're "supposed to". This only adds a partial dependency, since we don't actually need to link against libdrm. --- render/egl.c | 2 +- render/meson.build | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) (limited to 'render') diff --git a/render/egl.c b/render/egl.c index 5c0f2c4a..cfa37f20 100644 --- a/render/egl.c +++ b/render/egl.c @@ -3,7 +3,7 @@ #include #include #include -#include +#include #include #include #include "glapi.h" diff --git a/render/meson.build b/render/meson.build index ab66eab0..8c126299 100644 --- a/render/meson.build +++ b/render/meson.build @@ -22,7 +22,13 @@ lib_wlr_render = static_library( ), glapi, include_directories: wlr_inc, - dependencies: [egl, glesv2, pixman, wayland_server], + dependencies: [ + egl, + drm.partial_dependency(includes: true), # + glesv2, + pixman, + wayland_server + ], ) wlr_render = declare_dependency( -- cgit v1.2.3