Files
winf-photobooth/package/enscript/0002-Add-CFLAG-std-c89-so-it-compiles-with-the-old-standa.patch
Michael b8783708ae Initial Commit
- initial default booting image
2026-11-06 20:45:42 +01:00

30 lines
802 B
Diff

From c0c7e9ad51b2e9aebea46f0179446fcf896f8d63 Mon Sep 17 00:00:00 2001
From: Wim Stockman <wimstockman@gmail.com>
Date: Fri, 20 Feb 2026 10:51:37 +0100
Subject: [PATCH] Add CFLAG=-std=c89 so it compiles with the old standard,
modern standard gives problems
Upstream: https://git.savannah.gnu.org/cgit/enscript.git/commit/?id=111ad375a6e598c896441e10f4cf1e2fc1496c42
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
---
configure.ac | 3 +++
1 file changed, 3 insertions(+)
diff --git a/configure.ac b/configure.ac
index 465100a..b867912 100644
--- a/configure.ac
+++ b/configure.ac
@@ -10,6 +10,9 @@ AC_PROG_INSTALL
AC_PROG_CC
+# Force C89 standard and fix modern GCC global variable handling
+CFLAGS="$CFLAGS -std=c89"
+
AC_USE_SYSTEM_EXTENSIONS
AM_C_PROTOTYPES
--
2.55.0