0004-Use-sigemptyset-API-instead-of-__sigemptyset.patch 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  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. Upstream: https://github.com/telmich/gpm/commit/fdc42770596e25749f7e2ce0ea97882177397167
  9. Signed-off-by: Petr Vorel <petr.vorel@gmail.com>
  10. ---
  11. src/prog/gpm-root.y | 4 ----
  12. 1 file changed, 4 deletions(-)
  13. diff --git a/src/prog/gpm-root.y b/src/prog/gpm-root.y
  14. index 5126c65..76c896c 100644
  15. --- a/src/prog/gpm-root.y
  16. +++ b/src/prog/gpm-root.y
  17. @@ -1196,11 +1196,7 @@ int main(int argc, char **argv)
  18. LOG_DAEMON : LOG_USER);
  19. /* reap your zombies */
  20. childaction.sa_handler=reap_children;
  21. -#if defined(__GLIBC__)
  22. - __sigemptyset(&childaction.sa_mask);
  23. -#else /* __GLIBC__ */
  24. sigemptyset(&childaction.sa_mask);
  25. -#endif /* __GLIBC__ */
  26. childaction.sa_flags=0;
  27. sigaction(SIGCHLD,&childaction,NULL);
  28. --
  29. 2.14.2