opkg

statically linked package installer
git clone anongit@rnpnr.xyz:opkg.git
Log | Files | Refs | Feed | Submodules | README | LICENSE

Commit: 96080d67e4e628001baf97a288a967feb7b9de6f
Parent: 17c2d4aac1fadfe9c30819b611ffa21c9f8521b8
Author: Michael Forney
Date:   Tue, 29 Apr 2025 00:49:58 -0700

rc: Fix build with gcc 15.1.0

Diffstat:
Apkg/lang/rc/patch/0003-Use-complete-function-prototype-to-fix-build-with-C2.patch | 34++++++++++++++++++++++++++++++++++
Mpkg/lang/rc/ver | 2+-
2 files changed, 35 insertions(+), 1 deletion(-)

diff --git a/pkg/lang/rc/patch/0003-Use-complete-function-prototype-to-fix-build-with-C2.patch b/pkg/lang/rc/patch/0003-Use-complete-function-prototype-to-fix-build-with-C2.patch @@ -0,0 +1,34 @@ +From 39da3936cd5cf89e97de197181a05bb405e114b9 Mon Sep 17 00:00:00 2001 +From: Michael Forney <mforney@mforney.org> +Date: Tue, 29 Apr 2025 00:48:53 -0700 +Subject: [PATCH] Use complete function prototype to fix build with C23 + +--- + unix.c | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/unix.c b/unix.c +index 3f7bf9d..7052075 100644 +--- a/unix.c ++++ b/unix.c +@@ -402,7 +402,7 @@ gettrap(int sig) + ntrap++; + if(ntrap>=NSIG){ + pfmt(err, "rc: Too many traps (trap %d), dumping core\n", sig); +- signal(SIGABRT, (void (*)())0); ++ signal(SIGABRT, (void (*)(int))0); + kill(getpid(), SIGABRT); + } + } +@@ -411,7 +411,7 @@ void + Trapinit(void) + { + int i; +- void (*sig)(); ++ void (*sig)(int); + + if(1 || flag['d']){ /* wrong!!! */ + sig = signal(SIGINT, gettrap); +-- +2.49.0 + diff --git a/pkg/lang/rc/ver b/pkg/lang/rc/ver @@ -1 +1 @@ -50b729e65d r0 +50b729e65d r1