ircii-20110228-glibc.patch 799 B

123456789101112131415161718192021222324252627282930
  1. From: Nathan Phillip Brink <ohnobinki@ohnopublishing.net>
  2. Support glibc systems where SIGRTMAX and SIGRTMIN macros can only be fully expanded at runtime.
  3. --- a/source/mksiginc.c
  4. +++ b/source/mksiginc.c
  5. @@ -191,12 +191,18 @@
  6. signames[SIGRETRACT] = "RETRACT";
  7. #endif
  8. -#if defined(SIGRTMAX) && SIGRTMAX < MY_MAXSIG
  9. - signames[SIGRTMAX] = "RTMAX";
  10. +#if defined(SIGRTMAX)
  11. + /*
  12. + * In recent glibc, SIGRTMAX and SIGRTMIN macros are runtime
  13. + * function calls into libc and must be evaluated at runtime.
  14. + */
  15. + if (SIGRTMAX < MY_MAXSIG)
  16. + signames[SIGRTMAX] = "RTMAX";
  17. #endif
  18. -#if defined(SIGRTMIN) && SIGRTMIN < MY_MAXSIG
  19. - signames[SIGRTMIN] = "RTMIN";
  20. +#if defined(SIGRTMIN)
  21. + if (SIGRTMIN < MY_MAXSIG)
  22. + signames[SIGRTMIN] = "RTMIN";
  23. #endif
  24. #if defined(SIGSAK) && SIGSAK < MY_MAXSIG