• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • More
    ProjectsRepositories
  • Help
    • Online help
    • Learn Git
    • Welcome to Bitbucket
    • Keyboard shortcuts
  • Log In
Alexander Dahl
  1. Alexander Dahl

buildroot

Public
Actions
  • Clone
  • Compare

Learn more about cloning repositories

You have read-only access

Navigation
  • Source
  • Commits
  • Branches
  • All Branches Graph
  • Forks
  1. Alexander Dahl
  2. buildroot

Source

buildroot/package/libsvg/0001-fix-expat-static-declaration.patch
Peter KorsgaardPeter Korsgaard committed 298cd8eaa2103 Feb 2015
Raw file
Source viewDiff to previous
xxxxxxxxxx
 
1
Newer expat versions use different declarations of the following functions:
2
​
3
static void _svg_parser_sax_start_element ();
4
static void _svg_parser_sax_end_element ();
5
static void _svg_parser_sax_characters ();
6
​
7
We need to patch the libsvg source to not follow into a build error like
8
   "static declaration of 'foo' follows non-static declaration"
9
and use the functions from the expat library instead from the libsvg source.
10
​
11
Patch based on
12
http://oe-lite.org/redmine/projects/xorg/repository/revisions/c4df7951e846e1be718f37f2455696a1d0861f3d/entry/recipes/cairo/libsvg-0.1.4/gcc4_and_expat.patch
13
​
14
Signed-off-by: Carsten Schoenert <c.schoenert@gmail.com>
15
​
16
diff -bur libsvg-0.1.4~orig/src/svg_parser_expat.c libsvg-0.1.4/src/svg_parser_expat.c
17
--- libsvg-0.1.4~orig/src/svg_parser_expat.c    2005-02-14 11:26:26.000000000 -0600
18
+++ libsvg-0.1.4/src/svg_parser_expat.c 2006-02-10 21:58:20.000000000 -0600
19
@@ -30,6 +30,7 @@
20
 #include "svgint.h"
21
 #include "svg_hash.h"
22
 
23
+#ifndef LIBSVG_EXPAT
24
 static void
25
 _svg_parser_sax_start_element (void        *closure,
26
                   const XML_Char   *name,
27
@@ -43,6 +44,7 @@
28
 _svg_parser_sax_characters (void       *closure,
29
                const XML_Char  *ch,
30
                int         len);
31
+#endif
32
 
33
 static void
  • Git repository management for enterprise teams powered by Atlassian Bitbucket
  • Atlassian Bitbucket v6.7.2
  • Documentation
  • Request a feature
  • About
  • Contact Atlassian
Atlassian

Everything looks good. We'll let you know here if there's anything you should know about.