]> git.sesse.net Git - vlc/blob - extras/contrib/src/Patches/clinkcc.patch
Contrib: upnp/win32, remove strerror use, and other small hacks...
[vlc] / extras / contrib / src / Patches / clinkcc.patch
1 diff -ru clinkcc.orig/configure.in clinkcc/configure.in
2 --- clinkcc.orig/configure.in   2005-11-14 18:08:07.000000000 +0100
3 +++ clinkcc/configure.in        2005-11-14 18:08:13.000000000 +0100
4 @@ -150,6 +150,7 @@
5  AC_CHECK_FUNCS([iconv])
6  AC_CHECK_HEADERS([iconv.h])
7  AC_CHECK_LIB([iconv],[main])
8 +AM_ICONV
9  
10  ##############################
11  # Checks for pthread
12 diff -ru clinkcc.orig/src/cybergarage/xml/XML.cpp clinkcc/src/cybergarage/xml/XML.cpp
13 --- clinkcc.orig/src/cybergarage/xml/XML.cpp    2005-11-14 18:08:07.000000000 +0100
14 +++ clinkcc/src/cybergarage/xml/XML.cpp 2005-11-14 18:08:13.000000000 +0100
15 @@ -123,7 +123,7 @@
16         char *cpbuf = strdup(str);
17         if (cpbuf == NULL)
18                 return NULL;
19 -       const char *inbuf = cpbuf;
20 +       ICONV_CONST char *inbuf = cpbuf;
21         size_t inbyteleft = strlen(str);
22         size_t outbufSize = inbyteleft * sizeof(UnicodeStr) * 4;
23         UnicodeStr *outbuf = new UnicodeStr[outbufSize + 1];
24 diff -ru clinkcc.orig/src/cybergarage/xml/libxml2/Libxml2Parser.cpp clinkcc/src/cybergarage/xml/libxml2/Libxml2Parser.cpp
25 --- clinkcc.orig/src/cybergarage/xml/libxml2/Libxml2Parser.cpp  2005-11-14 18:08:07.000000000 +0100
26 +++ clinkcc/src/cybergarage/xml/libxml2/Libxml2Parser.cpp       2005-11-14 18:08:44.000000000 +0100
27 @@ -124,7 +124,7 @@
28      xmlNodePtr child = cur->xmlChildrenNode;\r
29      while ( child != NULL ) {\r
30  \r
31 -      Node *newChildNode = convertToCLinkFormat( doc, child, depth  1 );\r
32 +      Node *newChildNode = convertToCLinkFormat( doc, child, depth );\r
33        if ( newChildNode ) {\r
34         newNode->addNode( newChildNode );\r
35        }\r