summaryrefslogtreecommitdiffstats
path: root/package/libxmlrpc/0003-non-wchar-build.patch
diff options
context:
space:
mode:
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>2014-12-27 14:47:15 +0100
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2014-12-27 17:21:18 +0100
commit56c7bb5760e721a90e16b5fa1a3b74f8138cf721 (patch)
tree1bd0e33c6381886bb9b49c9e41d0ecfa743d470c /package/libxmlrpc/0003-non-wchar-build.patch
parent64973b0946cefb06915674bc87a7a9ce5bf70699 (diff)
downloadbuildroot-56c7bb5760e721a90e16b5fa1a3b74f8138cf721.tar.gz
buildroot-56c7bb5760e721a90e16b5fa1a3b74f8138cf721.zip
libxmlrpc: rename patches to the new convention
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Diffstat (limited to 'package/libxmlrpc/0003-non-wchar-build.patch')
-rw-r--r--package/libxmlrpc/0003-non-wchar-build.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/package/libxmlrpc/0003-non-wchar-build.patch b/package/libxmlrpc/0003-non-wchar-build.patch
new file mode 100644
index 0000000000..1f04353061
--- /dev/null
+++ b/package/libxmlrpc/0003-non-wchar-build.patch
@@ -0,0 +1,24 @@
+Disable wide-char specific code
+
+The vast majority of the libxmlrpc code nicely handles the absence of
+wide char support, except at one location, which is fixed by this
+patch.
+
+Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
+
+Index: b/src/xmlrpc_decompose.c
+===================================================================
+--- a/src/xmlrpc_decompose.c
++++ b/src/xmlrpc_decompose.c
+@@ -217,7 +217,11 @@
+ xmlrpc_strfree(*decompRootP->store.Tstring.valueP);
+ break;
+ case 'w':
++#if HAVE_UNICODE_WCHAR
+ free((void*)*decompRootP->store.TwideString.valueP);
++#else
++ XMLRPC_ASSERT(false);
++#endif
+ break;
+ case '6':
+ free((void*)*decompRootP->store.TbitString.valueP);
OpenPOWER on IntegriCloud