aboutsummaryrefslogtreecommitdiff
path: root/render
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2018-10-15 02:31:49 +0200
committerGitHub <noreply@github.com>2018-10-15 02:31:49 +0200
commit814fc1364ce68c079961653ddc4714694e5a9b07 (patch)
tree34b4328b4a5e05ce69612da0c7fd2008e8a711cd /render
parent7daca85bcf4f3c0567697afb3603472394a85273 (diff)
parent7ca3bc1d6f36fd1751902e1976feceb427e6aba3 (diff)
Merge pull request #1312 from ascent12/drm_include
Fix libdrm includes
Diffstat (limited to 'render')
-rw-r--r--render/egl.c2
-rw-r--r--render/meson.build8
2 files changed, 8 insertions, 2 deletions
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 <EGL/egl.h>
#include <EGL/eglext.h>
#include <stdlib.h>
-#include <libdrm/drm_fourcc.h>
+#include <drm_fourcc.h>
#include <wlr/render/egl.h>
#include <wlr/util/log.h>
#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), # <drm_fourcc.h>
+ glesv2,
+ pixman,
+ wayland_server
+ ],
)
wlr_render = declare_dependency(