diff options
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); |