Unverified Commit ee4f0e1c authored by Michael Daniels's avatar Michael Daniels Committed by GitHub
Browse files

gbdfed: fix build with gcc15 (#505743)

parents 19cdbeae 71b7c771
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -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 = ''