diff options
Diffstat (limited to 'source/l/pilot-link/pilot-link-configure-c99.patch')
-rw-r--r-- | source/l/pilot-link/pilot-link-configure-c99.patch | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/source/l/pilot-link/pilot-link-configure-c99.patch b/source/l/pilot-link/pilot-link-configure-c99.patch new file mode 100644 index 000000000..7ce8d0eed --- /dev/null +++ b/source/l/pilot-link/pilot-link-configure-c99.patch @@ -0,0 +1,30 @@ +The standard iconv function expects a char ** type for its input +argument. Adjust the configure probe to avoid build failures +with future compilers. + +diff --git a/configure b/configure +index d4031564da7e2184..a2e5877f8588059d 100755 +--- a/configure ++++ b/configure +@@ -15859,7 +15859,7 @@ else + + int main (int argc, char **argv) + { +- const char *pc = "\x66\x66\x66\x66\x66\x66\x66\xA9"; ++ char *pc = (char *) "\x66\x66\x66\x66\x66\x66\x66\xA9"; + const char *utf8 = "\x66\x66\x66\x66\x66\x66\x66\xC2\xA9"; + char transbuf[10], *trans = transbuf; + iconv_t cd; +diff --git a/configure.ac b/configure.ac +index dc19311ce99f888a..ce9b310527e1a8dc 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -458,7 +458,7 @@ AC_CHECK_LIB( + + int main (int argc, char **argv) + { +- const char *pc = "\x66\x66\x66\x66\x66\x66\x66\xA9"; ++ char *pc = (char *) "\x66\x66\x66\x66\x66\x66\x66\xA9"; + const char *utf8 = "\x66\x66\x66\x66\x66\x66\x66\xC2\xA9"; + char transbuf[10], *trans = transbuf; + iconv_t cd; |