aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/meson.build3
-rw-r--r--examples/screenshot.c2
2 files changed, 3 insertions, 2 deletions
diff --git a/examples/meson.build b/examples/meson.build
index 89fc6211..af0f5a18 100644
--- a/examples/meson.build
+++ b/examples/meson.build
@@ -29,5 +29,6 @@ executable(
executable(
'screenshot',
'screenshot.c',
- dependencies: [wayland_client, wlr_protos],
+ dependencies: [wayland_client, wlr_protos, wlroots],
+ link_with: lib_shared,
)
diff --git a/examples/screenshot.c b/examples/screenshot.c
index fc7f3cb3..a887d1d7 100644
--- a/examples/screenshot.c
+++ b/examples/screenshot.c
@@ -35,7 +35,7 @@
#include <limits.h>
#include <sys/param.h>
#include <screenshooter-client-protocol.h>
-#include "../backend/wayland/os-compatibility.c"
+#include "util/os-compatibility.h"
static struct wl_shm *shm = NULL;
static struct orbital_screenshooter *screenshooter = NULL;