diff options
author | 2018-12-01 08:35:22 +0100 | |
---|---|---|
committer | 2018-12-01 08:35:22 +0100 | |
commit | d5678a147fb98116c40659823e2fb677bf3167ce (patch) | |
tree | ad39c1e3e781a481ec80ebb33770fa845ecf5977 /swaylock | |
parent | Merge pull request #3219 from RedSoxFan/swaymsg-object-success (diff) | |
parent | swaylock: fix build with musl libc (diff) | |
download | sway-d5678a147fb98116c40659823e2fb677bf3167ce.tar.gz sway-d5678a147fb98116c40659823e2fb677bf3167ce.tar.zst sway-d5678a147fb98116c40659823e2fb677bf3167ce.zip |
Merge pull request #3226 from CameronNemo/musl
swaylock: fix build with musl libc
Diffstat (limited to 'swaylock')
-rw-r--r-- | swaylock/main.c | 3 |
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 @@ | |||
4 | #include <errno.h> | 4 | #include <errno.h> |
5 | #include <fcntl.h> | 5 | #include <fcntl.h> |
6 | #include <getopt.h> | 6 | #include <getopt.h> |
7 | #include <poll.h> | ||
7 | #include <stdbool.h> | 8 | #include <stdbool.h> |
8 | #include <stdio.h> | 9 | #include <stdio.h> |
9 | #include <stdlib.h> | 10 | #include <stdlib.h> |
@@ -961,7 +962,7 @@ int main(int argc, char **argv) { | |||
961 | } | 962 | } |
962 | 963 | ||
963 | state.eventloop = loop_create(); | 964 | state.eventloop = loop_create(); |
964 | loop_add_fd(state.eventloop, wl_display_get_fd(state.display), POLL_IN, | 965 | loop_add_fd(state.eventloop, wl_display_get_fd(state.display), POLLIN, |
965 | display_in, NULL); | 966 | display_in, NULL); |
966 | 967 | ||
967 | state.run_display = true; | 968 | state.run_display = true; |