0001-fix-expat-static-declaration.patch 1.2 KB

123456789101112131415161718192021222324252627282930313233
  1. Newer expat versions use different declarations of the following functions:
  2. static void _svg_parser_sax_start_element ();
  3. static void _svg_parser_sax_end_element ();
  4. static void _svg_parser_sax_characters ();
  5. We need to patch the libsvg source to not follow into a build error like
  6. "static declaration of 'foo' follows non-static declaration"
  7. and use the functions from the expat library instead from the libsvg source.
  8. Patch based on
  9. http://oe-lite.org/redmine/projects/xorg/repository/revisions/c4df7951e846e1be718f37f2455696a1d0861f3d/entry/recipes/cairo/libsvg-0.1.4/gcc4_and_expat.patch
  10. Signed-off-by: Carsten Schoenert <c.schoenert@gmail.com>
  11. diff -bur libsvg-0.1.4~orig/src/svg_parser_expat.c libsvg-0.1.4/src/svg_parser_expat.c
  12. --- libsvg-0.1.4~orig/src/svg_parser_expat.c 2005-02-14 11:26:26.000000000 -0600
  13. +++ libsvg-0.1.4/src/svg_parser_expat.c 2006-02-10 21:58:20.000000000 -0600
  14. @@ -30,6 +30,7 @@
  15. #include "svgint.h"
  16. #include "svg_hash.h"
  17. +#ifndef LIBSVG_EXPAT
  18. static void
  19. _svg_parser_sax_start_element (void *closure,
  20. const XML_Char *name,
  21. @@ -43,6 +44,7 @@
  22. _svg_parser_sax_characters (void *closure,
  23. const XML_Char *ch,
  24. int len);
  25. +#endif
  26. static void