summaryrefslogtreecommitdiffstats
path: root/source/l/pilot-link/pilot-link-configure-c99.patch
blob: 7ce8d0eedf383417bcd73c2d49b2f8c63fae1652 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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;