darwin-segfaults.patch 923 B

12345678910111213141516171819202122
  1. --- contrib/tools/bison/lib/obstack.h (ef06a7dccff68bd15f669606131c541d158d4b1a)
  2. +++ contrib/tools/bison/lib/obstack.h (1efd2cc9274f1f5a222e759093d27c8d38825028)
  3. @@ -511,4 +511,8 @@ __extension__ \
  4. } /* C++ */
  5. #endif
  6. +#if !defined(obstack_printf)
  7. +int obstack_printf(struct obstack *obs, const char *format, ...);
  8. +#endif
  9. +
  10. #endif /* _OBSTACK_H */
  11. --- contrib/tools/bison/lib/obstack_printf.c (ef06a7dccff68bd15f669606131c541d158d4b1a)
  12. +++ contrib/tools/bison/lib/obstack_printf.c (1efd2cc9274f1f5a222e759093d27c8d38825028)
  13. @@ -26,6 +26,8 @@
  14. #include <stdarg.h>
  15. #include <stdlib.h>
  16. +int obstack_vprintf(struct obstack *obs, const char *format, va_list args);
  17. +
  18. /* Grow an obstack with formatted output. Return the number of bytes
  19. added to OBS. No trailing nul byte is added, and the object should
  20. be closed with obstack_finish before use.