projects/aports·blob master · refs

26 lines · 717 B

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