diff options
author | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2016-11-28 23:20:58 +0100 |
---|---|---|
committer | Peter Korsgaard <peter@korsgaard.com> | 2016-12-06 11:28:43 +0100 |
commit | 55b1114f7202ff09a1d060a112760b1e2efa477c (patch) | |
tree | fb963acfd837330b0af78a9e55d8094c5dfbf9f5 /package/sysklogd/0001-Replace-deprecated-union-wait-with-int.patch | |
parent | 4c4756be6b34ccb20c4b879efddda5c291da52ca (diff) | |
download | buildroot-55b1114f7202ff09a1d060a112760b1e2efa477c.tar.gz buildroot-55b1114f7202ff09a1d060a112760b1e2efa477c.zip |
sysklogd: fix build on musl
This commit add a stack of small patches that make sysklogd build fine
with the musl C library. Build with uClibc and glibc has been tested
with those patches applied as well.
The first patch is slightly rework (better description and capital
letter to the title) in preparation for upstream submission.
Fixes:
http://autobuild.buildroot.net/results/8fa2bf73f983330884bce2e5ac31e01dee112ba9/
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'package/sysklogd/0001-Replace-deprecated-union-wait-with-int.patch')
-rw-r--r-- | package/sysklogd/0001-Replace-deprecated-union-wait-with-int.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/package/sysklogd/0001-Replace-deprecated-union-wait-with-int.patch b/package/sysklogd/0001-Replace-deprecated-union-wait-with-int.patch new file mode 100644 index 0000000000..d3fc0dc188 --- /dev/null +++ b/package/sysklogd/0001-Replace-deprecated-union-wait-with-int.patch @@ -0,0 +1,28 @@ +From 76685540a7882926c54bc0d1a8945b7a6abffe40 Mon Sep 17 00:00:00 2001 +From: Ryan Coe <bluemrp9@gmail.com> +Date: Fri, 7 Oct 2016 19:42:40 -0700 +Subject: [PATCH] Replace deprecated union wait with int + +This is needed for compatibility with glibc >= 2.24. + +Signed-off-by: Ryan Coe <bluemrp9@gmail.com> +--- + syslogd.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/syslogd.c b/syslogd.c +index ea73ea5..ace96c8 100644 +--- a/syslogd.c ++++ b/syslogd.c +@@ -2094,7 +2094,7 @@ void reapchild() + (void) signal(SIGCHLD, reapchild); /* reset signal handler -ASP */ + wait ((int *)0); + #else +- union wait status; ++ int status; + + while (wait3(&status, WNOHANG, (struct rusage *) NULL) > 0) + ; +-- +2.7.4 + |