Merge pull request #3226 from CameronNemo/musl

swaylock: fix build with musl libc
This commit is contained in:
emersion 2018-12-01 08:35:22 +01:00 committed by GitHub
commit d5678a147f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,6 +4,7 @@
#include <errno.h> #include <errno.h>
#include <fcntl.h> #include <fcntl.h>
#include <getopt.h> #include <getopt.h>
#include <poll.h>
#include <stdbool.h> #include <stdbool.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
@ -961,7 +962,7 @@ int main(int argc, char **argv) {
} }
state.eventloop = loop_create(); 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); display_in, NULL);
state.run_display = true; state.run_display = true;