From 257515cc375c0530a5722e2add211dcc067a3ad6 Mon Sep 17 00:00:00 2001 From: Peter Fordham Date: Thu, 15 Dec 2022 08:04:22 +0000 Subject: [PATCH] Port configure script to C99. https://fedoraproject.org/wiki/Toolchain/PortingToModernC Rebuilding configure with new autotools would also solve the problem. --- cdargs-1.35_configure_c99.patch | 15 +++++++++++++++ cdargs.spec | 1 + 2 files changed, 16 insertions(+) create mode 100644 cdargs-1.35_configure_c99.patch diff --git a/cdargs-1.35_configure_c99.patch b/cdargs-1.35_configure_c99.patch new file mode 100644 index 0000000..d20718f --- /dev/null +++ b/cdargs-1.35_configure_c99.patch @@ -0,0 +1,15 @@ +diff --git a/configure b/configure +index 8567554..f4588d4 100755 +--- a/configure ++++ b/configure +@@ -2507,8 +2507,8 @@ main () + for (i = 0; i < 256; i++) + if (XOR (islower (i), ISLOWER (i)) + || toupper (i) != TOUPPER (i)) +- exit(2); +- exit (0); ++ return 2; ++ return 0; + } + _ACEOF + rm -f conftest$ac_exeext diff --git a/cdargs.spec b/cdargs.spec index 340e367..d89c613 100644 --- a/cdargs.spec +++ b/cdargs.spec @@ -12,6 +12,7 @@ Source1: %{name}-%{version}_emacs-init.el Patch0: %{name}-%{version}_shebangs.patch Patch1: %{name}-%{version}_format_security.patch Patch2: %{name}-%{version}_fix_fsf_address.patch +Patch3: %{name}-%{version}_configure_c99.patch BuildRequires: gcc-c++ BuildRequires: ncurses-devel