mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-19 03:53:22 -04:00
gui-apps/someblocks: fix build with GCC 15
Closes: https://bugs.gentoo.org/945237 Signed-off-by: Takuya Wakazono <pastalian46@gmail.com>
This commit is contained in:
29
gui-apps/someblocks/files/someblocks-1.0.1-c23.patch
Normal file
29
gui-apps/someblocks/files/someblocks-1.0.1-c23.patch
Normal file
@@ -0,0 +1,29 @@
|
||||
https://bugs.gentoo.org/945237
|
||||
https://lists.sr.ht/~raphi/public-inbox/patches/56817
|
||||
C23 compatibility patch.
|
||||
--- a/someblocks.c
|
||||
+++ b/someblocks.c
|
||||
@@ -34,7 +34,7 @@ void setupsignals();
|
||||
void sighandler(int signum);
|
||||
int getstatus(char *str, char *last);
|
||||
void statusloop();
|
||||
-void termhandler();
|
||||
+void termhandler(int signum);
|
||||
void pstdout();
|
||||
void psomebar();
|
||||
static void (*writestatus) () = psomebar;
|
||||
@@ -178,12 +178,12 @@ void sighandler(int signum)
|
||||
writestatus();
|
||||
}
|
||||
|
||||
-void termhandler()
|
||||
+void termhandler(int signum)
|
||||
{
|
||||
statusContinue = 0;
|
||||
}
|
||||
|
||||
-void sigpipehandler()
|
||||
+void sigpipehandler(int signum)
|
||||
{
|
||||
close(somebarFd);
|
||||
somebarFd = -1;
|
||||
Reference in New Issue
Block a user