| 1 | From 689223601ea8bd18b739bb722173cd00918b106d Mon Sep 17 00:00:00 2001
|
| 2 | From: Yao Zi <[email protected]>
|
| 3 | Date: Sat, 26 Oct 2024 14:47:27 +0000
|
| 4 | Subject: [PATCH] Add missing feature test macro to fix musl build
|
| 5 |
|
| 6 | _POSIX_C_SOURCE should be defined to ensure declaration of kill(2)
|
| 7 | is included. This fixes build on musl libc.
|
| 8 |
|
| 9 | Link: https://www.man7.org/linux/man-pages/man2/kill.2.html#SYNOPSIS
|
| 10 | Signed-off-by: Yao Zi <[email protected]>
|
| 11 | ---
|
| 12 | src/gtklock.c | 1 +
|
| 13 | 1 file changed, 1 insertion(+)
|
| 14 |
|
| 15 | diff --git a/src/gtklock.c b/src/gtklock.c
|
| 16 | index 2273506..f992c15 100644
|
| 17 | |
| 18 | |
| 19 | @@ -3,6 +3,7 @@
|
| 20 |
|
| 21 | // gtklock application
|
| 22 |
|
| 23 | +#define _POSIX_C_SOURCE
|
| 24 | #include <signal.h>
|
| 25 | #include <gtk/gtk.h>
|
| 26 |
|