1f043530613466235e09aef2bf30ffb9cbd86122
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / libxmlrpc / 0003-non-wchar-build.patch
1 Disable wide-char specific code
2
3 The vast majority of the libxmlrpc code nicely handles the absence of
4 wide char support, except at one location, which is fixed by this
5 patch.
6
7 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
8
9 Index: b/src/xmlrpc_decompose.c
10 ===================================================================
11 --- a/src/xmlrpc_decompose.c
12 +++ b/src/xmlrpc_decompose.c
13 @@ -217,7 +217,11 @@
14          xmlrpc_strfree(*decompRootP->store.Tstring.valueP);
15          break;
16      case 'w':
17 +#if HAVE_UNICODE_WCHAR
18          free((void*)*decompRootP->store.TwideString.valueP);
19 +#else
20 +       XMLRPC_ASSERT(false);
21 +#endif
22          break;
23      case '6':
24          free((void*)*decompRootP->store.TbitString.valueP);