mcst-linux-kernel/patches-2024.06.26/sysklogd-1.5/0007-glibc-2.29-compat.patch

17 lines
419 B
Diff
Raw Normal View History

2024-07-09 13:51:45 +03:00
diff -Naur orig/syslogd.c new/syslogd.c
--- orig/syslogd.c 2019-08-13 10:19:47.793362813 +0000
+++ new/syslogd.c 2019-08-13 10:20:35.371357537 +0000
@@ -2094,8 +2094,11 @@
(void) signal(SIGCHLD, reapchild); /* reset signal handler -ASP */
wait ((int *)0);
#else
+#if defined (__GLIBC__)
+ int status;
+#else
union wait status;
-
+#endif
while (wait3(&status, WNOHANG, (struct rusage *) NULL) > 0)
;
#endif