slackware-current/source/l/pilot-link/pilot-link-configure-c99.patch
Patrick J Volkerding abc3e67678 Sun May 12 19:10:12 UTC 2024
a/less-654-x86_64-1.txz:  Upgraded.
d/ninja-1.12.1-x86_64-1.txz:  Upgraded.
n/whois-5.5.23-x86_64-1.txz:  Upgraded.
  Updated the .sc, .********* (.xn--yfro4i67o, Singapore)
  and .********************************* (.xn--clchc0ea0b2g2a9gcd, Singapore)
  TLD servers.
extra/bittornado/bittornado-0.3.18-noarch-3.txz:  Removed.
  Obsolete and based on python2.
2024-05-12 21:28:58 +02:00

30 lines
990 B
Diff

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;