slackware-current/source/l/pilot-link/pilot-link-configure-c99.patch

31 lines
990 B
Diff
Raw Normal View History

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;