gbdfed: fix build with gcc15

This commit is contained in:
Xiangyan Sun
2026-04-01 09:42:09 -07:00
parent d3d48af509
commit 71b7c7713a
+6
View File
@@ -26,6 +26,12 @@ stdenv.mkDerivation (finalAttrs: {
hardeningDisable = [ "format" ];
postPatch = ''
# gcc15
substituteInPlace bdfgrab.c --replace-fail 'int (*old_error_handler)();' 'XErrorHandler old_error_handler;'
substituteInPlace hbf.c --replace-fail 'typedef int bool;' '// typedef int bool;'
'';
meta = {
description = "Bitmap Font Editor";
longDescription = ''