From 0f56476c79189a79d9774b8c7ced28ee170ef195 Mon Sep 17 00:00:00 2001 From: Andreas Enge Date: Mon, 28 Jul 2025 11:52:58 +0200 Subject: [PATCH] gnu: timidity++: Fix build with gcc-14. * gnu/packages/audio.scm (timidity++)[arguments]<#:phases>{fix-config.h}: New phase forcing the inclusion of standard C headers. Change-Id: I7697630110db13fd1960e4313b93efbe41e54e3e --- gnu/packages/audio.scm | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/gnu/packages/audio.scm b/gnu/packages/audio.scm index 2c4b25253b7f8be78f58258055ad34cdb3e8c414..ba1f332e1a3e822efe3d858a2b2f244a677fb7b0 100644 --- a/gnu/packages/audio.scm +++ b/gnu/packages/audio.scm @@ -1,7 +1,7 @@ ;;; GNU Guix --- Functional package management for GNU ;;; Copyright © 2015-2025 Ricardo Wurmus ;;; Copyright © 2015 Taylan Ulrich Bayırlı/Kammer -;;; Copyright © 2015 Andreas Enge +;;; Copyright © 2015, 2025 Andreas Enge ;;; Copyright © 2015 Alex Kost ;;; Copyright © 2015, 2016 Mark H Weaver ;;; Copyright © 2016-2022, 2024 Efraim Flashner @@ -4583,6 +4583,11 @@ for loudness normalisation.") (assoc-ref %outputs "out") "/etc/timidity")) #:phases (modify-phases %standard-phases + (add-after 'configure 'fix-config.h + (lambda _ + (substitute* "config.h" + (("/\\* #undef STDC_HEADERS \\*/") + "#define STDC_HEADERS 1")))) (add-after 'install 'install-config (lambda _ (let ((out (string-append (assoc-ref %outputs "out")