summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorJulien BOIBESSOT <julien.boibessot@armadeus.com>2017-12-05 18:48:14 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-03-22 09:37:16 +0100
commit9ed1f97d068c9eb4ba302cdc93b5a0c6d1f37960 (patch)
tree42fc2b5846559eaadd4b9a7d9193e6e7af7c50b0 /tools
parent9d8df5594467b6c73c3833b462abe5811fe7295b (diff)
downloadlinux-9ed1f97d068c9eb4ba302cdc93b5a0c6d1f37960.tar.gz
linux-9ed1f97d068c9eb4ba302cdc93b5a0c6d1f37960.tar.bz2
linux-9ed1f97d068c9eb4ba302cdc93b5a0c6d1f37960.zip
tools/usbip: fixes build with musl libc toolchain
[ Upstream commit 77be4c878c72e411ad22af96b6f81dd45c26450a ] Indeed musl doesn't define old SIGCLD signal name but only new one SIGCHLD. SIGCHLD is the new POSIX name for that signal so it doesn't change anything on other libcs. This fixes this kind of build error: usbipd.c: In function ‘set_signal’: usbipd.c:459:12: error: 'SIGCLD' undeclared (first use in this function) sigaction(SIGCLD, &act, NULL); ^~~~~~ usbipd.c:459:12: note: each undeclared identifier is reported only once for each function it appears in Makefile:407: recipe for target 'usbipd.o' failed make[3]: *** [usbipd.o] Error 1 Signed-off-by: Julien BOIBESSOT <julien.boibessot@armadeus.com> Acked-by: Shuah Khan <shuahkh@osg.samsung.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Sasha Levin <alexander.levin@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools')
-rw-r--r--tools/usb/usbip/src/usbipd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/usb/usbip/src/usbipd.c b/tools/usb/usbip/src/usbipd.c
index 2f87f2d348ba..562599cdc89d 100644
--- a/tools/usb/usbip/src/usbipd.c
+++ b/tools/usb/usbip/src/usbipd.c
@@ -453,7 +453,7 @@ static void set_signal(void)
sigaction(SIGTERM, &act, NULL);
sigaction(SIGINT, &act, NULL);
act.sa_handler = SIG_IGN;
- sigaction(SIGCLD, &act, NULL);
+ sigaction(SIGCHLD, &act, NULL);
}
static const char *pid_file;