]> git.baikalelectronics.ru Git - kernel.git/commit
tools/usbip: fixes build with musl libc toolchain
authorJulien BOIBESSOT <julien.boibessot@armadeus.com>
Tue, 5 Dec 2017 17:48:14 +0000 (18:48 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 7 Dec 2017 15:03:15 +0000 (16:03 +0100)
commit5ae309404e9cf1329c3c745058b8ab12e5d9a549
tree6cf2183dd440ca4d5d9032231f018e9997d14280
parent51d909df264f6d874845da5ca2a5563e263807d8
tools/usbip: fixes build with musl libc toolchain

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>
tools/usb/usbip/src/usbipd.c