Description: Build with C89 (gnu89) semantics for old K&R-style C code
 The upstream code predates C99 and relies on K&R-style empty argument
 lists (e.g. "int foo();") which are treated as zero-argument prototypes
 under modern C standards, causing "too many arguments", "number of
 arguments doesn't match prototype" and "implicit declaration of gets()"
 errors with GCC-15.  Force -std=gnu89 in both blimps/Makefile.Linux and
 protomat/Makefile.Linux to restore the intended semantics, and add
 -Wno-error=incompatible-pointer-types to keep the incompatible qsort
 comparator pointer diagnostic a warning instead of a hard error.
Author: openKylin Developers <packaging@lists.openkylin.top>
Forwarded: no
Last-Update: 2026-08-28

--- blimps-3.9+ds.orig/blimps/Makefile.Linux
+++ blimps-3.9+ds/blimps/Makefile.Linux
@@ -112,7 +112,7 @@ INCLUDES = -I$(INCLUDE_DIR)
 
 # C Flags to compiler
 #CFLAGS = `getconf LFS_CFLAGS` $(OPTIMIZ) $(DEFINES) $(INCLUDES)
-CFLAGS = $(DEBCFLAGS) $(OPTIMIZ) $(DEFINES) $(INCLUDES) -fpic
+CFLAGS = $(DEBCFLAGS) $(OPTIMIZ) $(DEFINES) $(INCLUDES) -fpic -std=gnu89 -Wno-error=incompatible-pointer-types
 
 
 # Linker Flags
--- blimps-3.9+ds.orig/protomat/Makefile.Linux
+++ blimps-3.9+ds/protomat/Makefile.Linux
@@ -2,7 +2,7 @@
 #   Type "make install" to compile all programs and move them to ../bin
 #   Type  "make blksort" to compile blksort program 
 CC = gcc
-CFLAGS = -Wall -O2 -c
+CFLAGS = -Wall -O2 -c -std=gnu89 -Wno-error=incompatible-pointer-types
 LDFLAGS = -lm -o
 RM = /bin/rm -f
 MV = /bin/mv -f
