diff options
author | Sam Bingner <sam@bingner.com> | 2019-04-30 23:43:35 -1000 |
---|---|---|
committer | MCApollo <34170230+MCApollo@users.noreply.github.com> | 2019-05-01 12:55:34 +0000 |
commit | 5deabf6e98ec940f099df0aaf78c5ca46c54e5b6 (patch) | |
tree | 476f2dddec9c32524d065bcf2a5e445b0cb748d5 /data/_libxslt/conftest.diff | |
parent | da2491fa3c41ff0d27de54d31495245087c1a90b (diff) |
Update libxslt packages
Diffstat (limited to 'data/_libxslt/conftest.diff')
-rw-r--r-- | data/_libxslt/conftest.diff | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/data/_libxslt/conftest.diff b/data/_libxslt/conftest.diff new file mode 100644 index 000000000..317a2647a --- /dev/null +++ b/data/_libxslt/conftest.diff @@ -0,0 +1,32 @@ +diff -ur libxslt-14.4/libxslt/configure.in libxslt-14.4+iPhone/libxslt/configure.in +--- libxslt-14.4/libxslt/configure.in 2016-05-14 12:25:09.000000000 -1000 ++++ libxslt-14.4+iPhone/libxslt/configure.in 2019-04-30 23:40:33.000000000 -1000 +@@ -205,21 +205,21 @@ + #endif + ]],[[ + xsltLocale locale; +- const char *src[[2]] = { "\xc3\x84rger", "Zeppelin" }; +- char *dst[[2]]; ++ const char *src[2] = { "\xc3\x84rger", "Zeppelin" }; ++ char *dst[2]; + size_t len, r; + int i; + + locale = newlocale(LC_COLLATE_MASK, "en_US.utf8", NULL); + if (locale == NULL) exit(1); + for (i=0; i<2; ++i) { +- len = strxfrm_l(NULL, src[[i]], 0, locale) + 1; +- dst[[i]] = malloc(len); +- if(dst[[i]] == NULL) exit(1); +- r = strxfrm_l(dst[[i]], src[[i]], len, locale); ++ len = strxfrm_l(NULL, src[i], 0, locale) + 1; ++ dst[i] = malloc(len); ++ if(dst[i] == NULL) exit(1); ++ r = strxfrm_l(dst[i], src[i], len, locale); + if(r >= len) exit(1); + } +- if (strcmp(dst[[0]], dst[[1]]) >= 0) exit(1); ++ if (strcmp(dst[0], dst[1]) >= 0) exit(1); + + exit(0); + return(0); |