From cc93f563d9e5efc1d7ab26079ad6d2b6329965bc Mon Sep 17 00:00:00 2001 From: Julio Galvan Date: Tue, 27 Nov 2018 06:52:48 +0000 Subject: [PATCH] Fix compilation error on musl _XOPEN_SOURCE must be defined in order to use the POLL_IN definition on the musl libc implementation --- swaylock/main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/swaylock/main.c b/swaylock/main.c index 50f145e36..cdd430297 100644 --- a/swaylock/main.c +++ b/swaylock/main.c @@ -1,3 +1,4 @@ +#define _XOPEN_SOURCE 700 #define _POSIX_C_SOURCE 200809L #include #include