]> git.mdlowis.com Git - proto/labwc.git/commitdiff
action.c: add _POSIX_C_SOURCE
authorJohan Malm <jgm323@gmail.com>
Thu, 16 Jun 2022 21:00:45 +0000 (22:00 +0100)
committerJohan Malm <jgm323@gmail.com>
Thu, 16 Jun 2022 21:00:45 +0000 (22:00 +0100)
...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

index c2a0566c5dc963edf54bd14b10c7ce2a7d5280d8..0e5d181f47a09444806c374735c4f7254ec876f7 100644 (file)
@@ -1,4 +1,5 @@
 // SPDX-License-Identifier: GPL-2.0-only
+#define _POSIX_C_SOURCE
 #include <strings.h>
 #include <wlr/util/log.h>
 #include <signal.h>