mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 15:38:40 +01:00
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>
This commit is contained in:
@@ -6,12 +6,10 @@
|
||||
|
||||
+#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)
|
||||
+static int sigignore(int signo)
|
||||
static void sigignore(int signo)
|
||||
{
|
||||
signo = signo; /* Happy compiler */
|
||||
- return;
|
||||
+ return 0;
|
||||
return;
|
||||
}
|
||||
+#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user