mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] tools/usbip: fixes build with musl libc toolchain
@ 2017-12-05 17:48 julien.boibessot
  2017-12-06 18:17 ` Shuah Khan
  0 siblings, 1 reply; 2+ messages in thread
From: julien.boibessot @ 2017-12-05 17:48 UTC (permalink / raw)
  To: Valentina Manea, Shuah Khan, linux-usb, linux-kernel; +Cc: Julien BOIBESSOT

From: Julien BOIBESSOT <julien.boibessot@armadeus.com>

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>
---
 tools/usb/usbip/src/usbipd.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/usb/usbip/src/usbipd.c b/tools/usb/usbip/src/usbipd.c
index 009afb4..c6dad2a 100644
--- a/tools/usb/usbip/src/usbipd.c
+++ b/tools/usb/usbip/src/usbipd.c
@@ -456,7 +456,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;
-- 
2.1.4

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] tools/usbip: fixes build with musl libc toolchain
  2017-12-05 17:48 [PATCH] tools/usbip: fixes build with musl libc toolchain julien.boibessot
@ 2017-12-06 18:17 ` Shuah Khan
  0 siblings, 0 replies; 2+ messages in thread
From: Shuah Khan @ 2017-12-06 18:17 UTC (permalink / raw)
  To: julien.boibessot, Valentina Manea, linux-usb, linux-kernel,
	Greg Kroah-Hartman
  Cc: Julien BOIBESSOT, Shuah Khan

On 12/05/2017 10:48 AM, julien.boibessot@free.fr wrote:
> From: Julien BOIBESSOT <julien.boibessot@armadeus.com>
> 
> 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>
> ---

Thanks for the patch.

Greg,

Please pick this up.

Acked-by: Shuah Khan <shuahkh@osg.samsung.com>

thanks,
-- Shuah

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-12-06 18:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-12-05 17:48 [PATCH] tools/usbip: fixes build with musl libc toolchain julien.boibessot
2017-12-06 18:17 ` Shuah Khan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®