aboutsummaryrefslogtreecommitdiff
path: root/swaylock/main.c
diff options
context:
space:
mode:
authorCameron Nemo <camerontnorman@gmail.com>2018-11-30 19:58:58 -0800
committerCameron Nemo <camerontnorman@gmail.com>2018-11-30 23:22:09 -0800
commitc6b2ee7291fc9dee8c79f67fe8c9a69a52b9b17c (patch)
treead39c1e3e781a481ec80ebb33770fa845ecf5977 /swaylock/main.c
parentfd37ded3a317d516bafdb92ec8fc1408892f480c (diff)
swaylock: fix build with musl libc
Signed-off-by: Cameron Nemo <camerontnorman@gmail.com>
Diffstat (limited to 'swaylock/main.c')
-rw-r--r--swaylock/main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/swaylock/main.c b/swaylock/main.c
index 50f145e3..9aeb4e64 100644
--- a/swaylock/main.c
+++ b/swaylock/main.c
@@ -4,6 +4,7 @@
#include <errno.h>
#include <fcntl.h>
#include <getopt.h>
+#include <poll.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
@@ -961,7 +962,7 @@ int main(int argc, char **argv) {
}
state.eventloop = loop_create();
- loop_add_fd(state.eventloop, wl_display_get_fd(state.display), POLL_IN,
+ loop_add_fd(state.eventloop, wl_display_get_fd(state.display), POLLIN,
display_in, NULL);
state.run_display = true;