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

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