wxGTK-3.0.5.1-configure-modern-c.patch 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. https://github.com/wxWidgets/wxWidgets/commit/da4b42688a6cd5444eefb91bf40183d88203ffca
  2. https://bugs.gentoo.org/874441
  3. --- a/configure
  4. +++ b/configure
  5. @@ -19586,6 +19586,7 @@ else
  6. /* end confdefs.h. */
  7. #include <stdio.h>
  8. + #include <stdlib.h>
  9. int main()
  10. {
  11. @@ -22300,6 +22301,7 @@ else
  12. #include <zlib.h>
  13. #include <stdio.h>
  14. + #include <stdlib.h>
  15. int main()
  16. {
  17. @@ -22422,6 +22424,7 @@ else
  18. #include <png.h>
  19. #include <stdio.h>
  20. + #include <stdlib.h>
  21. int main()
  22. {
  23. --- a/configure.in
  24. +++ b/configure.in
  25. @@ -1482,6 +1482,7 @@ case "${host}" in
  26. dnl Check the gcc version macro.
  27. [
  28. #include <stdio.h>
  29. + #include <stdlib.h>
  30. int main()
  31. {
  32. @@ -2439,6 +2440,7 @@ if test "$wxUSE_ZLIB" != "no" ; then
  33. [
  34. #include <zlib.h>
  35. #include <stdio.h>
  36. + #include <stdlib.h>
  37. int main()
  38. {
  39. @@ -2507,6 +2509,7 @@ if test "$wxUSE_LIBPNG" != "no" ; then
  40. [
  41. #include <png.h>
  42. #include <stdio.h>
  43. + #include <stdlib.h>
  44. int main()
  45. {