[xml/sgml-pkgs] Bug#1061266: [PATCH] sgmls: Fix type of signal handlers for C89 compatibility

Florian Weimer fweimer at redhat.com
Sun Jan 21 18:41:37 GMT 2024


Package: linuxdoc-tools
Version:  0.9.82-1
Tags: upstream patch

This is another fallout from GCC 14 porting of Fedora.

Without this change, the outcome of two tests are altered due to
compiler errors:

-#define HAVE_EXTENDED_PRINTF 1 
+/* #define HAVE_EXTENDED_PRINTF 1 */

-/* #define USE_ISASCII 1 */
+#define USE_ISASCII 1

(Not sure if the second change is a pre-existing bug or not.)

diff --git a/sgmls-1.1/configure b/sgmls-1.1/configure
index e674d24..898b522 100755
--- a/sgmls-1.1/configure
+++ b/sgmls-1.1/configure
@@ -113,7 +113,7 @@ cat >doit.c <<\EOF
 #include <stdlib.h>
 #include <unistd.h>
 
-static int whoops()
+static void whoops(int signo)
 {
   _exit(1);
 }
@@ -459,7 +459,7 @@ cat >doit.c <<\EOF
 #include <unistd.h>
 #include <string.h>
 
-static int whoops()
+static void whoops(int signo)
 {
   _exit(1);
 }
-- 
2.43.0



More information about the debian-xml-sgml-pkgs mailing list