9d7d74d
The standard iconv function uses char ** even for the input
9d7d74d
buffer. Using the incompatible const char ** type causes the check to
9d7d74d
fail if the compiler treats such type errors as errors, instead of
9d7d74d
merely warning about it.
9d7d74d
9d7d74d
Submitted upstream: <https://github.com/proftpd/proftpd/pull/1754>
9d7d74d
9d7d74d
diff --git a/configure b/configure
9d7d74d
index 433bb928..1a0538d8 100755
9d7d74d
--- a/configure
9d7d74d
+++ b/configure
9d7d74d
@@ -21475,7 +21475,7 @@ main ()
9d7d74d
 {
9d7d74d
 
9d7d74d
     size_t res, in_len = 0, out_len = 0;
9d7d74d
-    const char *in = NULL;
9d7d74d
+    char *in = NULL;
9d7d74d
     char *out = NULL;
9d7d74d
     res = iconv((iconv_t)-1, &in, &in_len, &out, &out_len);
9d7d74d
 
9d7d74d
diff --git a/configure.in b/configure.in
9d7d74d
index e2afbfa2..8a6ef35c 100644
9d7d74d
--- a/configure.in
9d7d74d
+++ b/configure.in
9d7d74d
@@ -2100,7 +2100,7 @@ AC_TRY_LINK(
9d7d74d
   ],
9d7d74d
   [ 
9d7d74d
     size_t res, in_len = 0, out_len = 0;
9d7d74d
-    const char *in = NULL;
9d7d74d
+    char *in = NULL;
9d7d74d
     char *out = NULL;
9d7d74d
     res = iconv((iconv_t)-1, &in, &in_len, &out, &out_len);
9d7d74d
   ],