aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorScott Anderson <scott@anderso.nz>2018-10-15 11:39:35 +1300
committerScott Anderson <scott@anderso.nz>2018-10-15 11:39:35 +1300
commit7ca3bc1d6f36fd1751902e1976feceb427e6aba3 (patch)
tree34b4328b4a5e05ce69612da0c7fd2008e8a711cd /examples
parent7daca85bcf4f3c0567697afb3603472394a85273 (diff)
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.
Diffstat (limited to 'examples')
-rw-r--r--examples/dmabuf-capture.c2
-rw-r--r--examples/meson.build1
2 files changed, 2 insertions, 1 deletions
diff --git a/examples/dmabuf-capture.c b/examples/dmabuf-capture.c
index 2c510b5a..abdb146a 100644
--- a/examples/dmabuf-capture.c
+++ b/examples/dmabuf-capture.c
@@ -12,7 +12,7 @@
#include <unistd.h>
#include <pthread.h>
#include <stdbool.h>
-#include <libdrm/drm_fourcc.h>
+#include <drm_fourcc.h>
#include "wlr-export-dmabuf-unstable-v1-client-protocol.h"
struct wayland_output {
diff --git a/examples/meson.build b/examples/meson.build
index da7a5275..e507ab42 100644
--- a/examples/meson.build
+++ b/examples/meson.build
@@ -80,6 +80,7 @@ examples = {
libavcodec,
libavformat,
libavutil,
+ drm.partial_dependency(includes: true), # <drm_fourcc.h>
threads,
wayland_client,
wlr_protos,