packages/utils/klish/patches/010-shell_execute_fix.patch
Rosen Penev 1a8481bf15
klish: fixup sigignore support
Added _GNU_SOURCE for uClibc-ng compatibility. _XOPEN_SOURCE does not
seem to be enough.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2020-08-22 14:12:01 -07:00

17 lines
485 B
Diff

--- a/clish/shell/shell_execute.c
+++ b/clish/shell/shell_execute.c
@@ -19,12 +19,14 @@
#include <signal.h>
#include <fcntl.h>
+#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 */
return;
}
+#endif
/*-------------------------------------------------------- */
static int clish_shell_lock(const char *lock_path)