mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 07:28:39 +01:00
klish: fix compilation with uClibc-ng
sigignore is missing from libc. Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
@@ -1,16 +1,19 @@
|
||||
--- a/clish/shell/shell_execute.c
|
||||
+++ b/clish/shell/shell_execute.c
|
||||
@@ -19,13 +19,6 @@
|
||||
@@ -19,12 +19,14 @@
|
||||
#include <signal.h>
|
||||
#include <fcntl.h>
|
||||
|
||||
-/* Empty signal handler to ignore signal but don't use SIG_IGN. */
|
||||
+#if defined(__UCLIBC__) && !defined(__UCLIBC_HAS_OBSOLETE_BSD_SIGNAL__)
|
||||
/* Empty signal handler to ignore signal but don't use SIG_IGN. */
|
||||
-static void sigignore(int signo)
|
||||
-{
|
||||
- signo = signo; /* Happy compiler */
|
||||
+static int sigignore(int signo)
|
||||
{
|
||||
signo = signo; /* Happy compiler */
|
||||
- return;
|
||||
-}
|
||||
-
|
||||
+ return 0;
|
||||
}
|
||||
+#endif
|
||||
|
||||
/*-------------------------------------------------------- */
|
||||
static int clish_shell_lock(const char *lock_path)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user