gnu: catimg: Fix build with gcc@14.

* gnu/packages/image-viewer.scm (catimg)[arguments]
<#:configure-flags>: Add _DEFAULT_SOURCE feature test macro.

Change-Id: Iba796f0f82546d632df2ab3120c4e3ec1a9647c0
Signed-off-by: Andreas Enge <andreas@enge.fr>
This commit is contained in:
Jelle Licht 2025-07-17 00:10:38 +02:00 committed by Andreas Enge
parent 0cca4d48bf
commit 0c8ef1e38f
No known key found for this signature in database
GPG key ID: F7D5C9BF765C61E3

View file

@ -578,6 +578,9 @@ your images. Among its features are:
(build-system cmake-build-system) (build-system cmake-build-system)
(arguments (arguments
`(#:tests? #f ; no tests `(#:tests? #f ; no tests
#:configure-flags
;; Fix compilation with gcc-14
'("-DCMAKE_C_FLAGS=-D_DEFAULT_SOURCE")
#:phases #:phases
(modify-phases %standard-phases (modify-phases %standard-phases
(add-after 'unpack 'patch-convert (add-after 'unpack 'patch-convert