diff options
| author | Rosen Penev | 2024-05-19 02:22:19 +0000 |
|---|---|---|
| committer | Rosen Penev | 2024-05-26 08:32:57 +0000 |
| commit | 66ec46c6c32d32ef20d745b04779a3b12797a478 (patch) | |
| tree | 0c027b44a4e2fd2d377591d7e398a5bd5f556281 | |
| parent | dd662f8a124fd385fc01732bee33c15c0d669a15 (diff) | |
| download | packages-66ec46c6c32d32ef20d745b04779a3b12797a478.tar.gz | |
klish: fix compilation with GCC14
Proper types are now needed.
Signed-off-by: Rosen Penev <rosenp@gmail.com>
| -rw-r--r-- | utils/klish/Makefile | 2 | ||||
| -rw-r--r-- | utils/klish/patches/010-shell_execute_fix.patch | 21 |
2 files changed, 13 insertions, 10 deletions
diff --git a/utils/klish/Makefile b/utils/klish/Makefile index 018af96bb6..a14a4025d9 100644 --- a/utils/klish/Makefile +++ b/utils/klish/Makefile @@ -10,7 +10,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=klish PKG_VERSION:=2.2.3 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz PKG_SOURCE_URL:=http://libcode.org/attachments/download/82 diff --git a/utils/klish/patches/010-shell_execute_fix.patch b/utils/klish/patches/010-shell_execute_fix.patch index 822736259d..e62cb22526 100644 --- a/utils/klish/patches/010-shell_execute_fix.patch +++ b/utils/klish/patches/010-shell_execute_fix.patch @@ -1,17 +1,20 @@ --- a/clish/shell/shell_execute.c +++ b/clish/shell/shell_execute.c -@@ -19,12 +19,14 @@ - #include <signal.h> +@@ -20,7 +20,7 @@ #include <fcntl.h> -+#if 0 /* Empty signal handler to ignore signal but don't use SIG_IGN. */ - static void sigignore(int signo) +-static void sigignore(int signo) ++static void sigignore2(int signo) { signo = signo; /* Happy compiler */ return; - } -+#endif - - /*-------------------------------------------------------- */ - static int clish_shell_lock(const char *lock_path) +@@ -361,7 +361,7 @@ int clish_shell_exec_action(clish_contex + */ + sa.sa_flags = 0; + sigemptyset(&sa.sa_mask); +- sa.sa_handler = sigignore; /* Empty signal handler */ ++ sa.sa_handler = sigignore2; /* Empty signal handler */ + sigaction(SIGINT, &sa, &old_sigint); + sigaction(SIGQUIT, &sa, &old_sigquit); + sigaction(SIGHUP, &sa, &old_sighup); |