From 46ee0707901eb30113696dd9240a7ced9eb700a2 Mon Sep 17 00:00:00 2001 From: Johan Malm Date: Thu, 16 Jun 2022 22:00:45 +0100 Subject: [PATCH] action.c: add _POSIX_C_SOURCE ...to compile cleanly with musl on Void Linux and avoid: ``` [9/58] Compiling C object labwc.p/src_action.c.o ../src/action.c: In function 'actions_run': ../src/action.c:204:4: warning: implicit declaration of function 'kill' [-Wimplicit-function-declaration] 204 | kill(getpid(), SIGHUP); | ^~~~ [58/58] Linking target labwc ``` Reported-by: @M4lin --- src/action.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/action.c b/src/action.c index c2a0566c..0e5d181f 100644 --- a/src/action.c +++ b/src/action.c @@ -1,4 +1,5 @@ // SPDX-License-Identifier: GPL-2.0-only +#define _POSIX_C_SOURCE #include #include #include