0001-glibc-sigemptyset.patch 980 B

12345678910111213141516171819202122232425262728
  1. From fdc42770596e25749f7e2ce0ea97882177397167 Mon Sep 17 00:00:00 2001
  2. From: Khem Raj <raj.khem@gmail.com>
  3. Date: Sun, 25 Jun 2017 07:25:33 -0700
  4. Subject: [PATCH] Use sigemptyset API instead of __sigemptyset
  5. __sigemptyset has been removed from glibc public
  6. API headers in upcoming (2.26) release onwards
  7. Signed-off-by: Khem Raj <raj.khem@gmail.com>
  8. ---
  9. src/prog/gpm-root.y | 4 ----
  10. 1 file changed, 4 deletions(-)
  11. diff --git a/src/prog/gpm-root.y b/src/prog/gpm-root.y
  12. index 5126c65..76c896c 100644
  13. --- a/src/prog/gpm-root.y
  14. +++ b/src/prog/gpm-root.y
  15. @@ -1196,11 +1196,7 @@ int main(int argc, char **argv)
  16. LOG_DAEMON : LOG_USER);
  17. /* reap your zombies */
  18. childaction.sa_handler=reap_children;
  19. -#if defined(__GLIBC__)
  20. - __sigemptyset(&childaction.sa_mask);
  21. -#else /* __GLIBC__ */
  22. sigemptyset(&childaction.sa_mask);
  23. -#endif /* __GLIBC__ */
  24. childaction.sa_flags=0;
  25. sigaction(SIGCHLD,&childaction,NULL);