Unverified Commit f6da8b05 authored by Arne Keller's avatar Arne Keller Committed by GitHub
Browse files

xsw: fix GCC 14 build (#372717)

parents 3294be96 72b02694
Loading
Loading
Loading
Loading
+9 −6
Original line number Diff line number Diff line
@@ -39,15 +39,18 @@ stdenv.mkDerivation rec {
    SDL_gfx
  ];

  env.NIX_CFLAGS_COMPILE = toString (makeSDLFlags [
  env.NIX_CFLAGS_COMPILE =
    toString (makeSDLFlags [
      SDL
      SDL_image
      SDL_ttf
      SDL_gfx
  ]);
    ])
    + " -lSDL";

  patches = [
    ./parse.patch # Fixes compilation error by avoiding redundant definitions.
    ./sdl-error.patch # Adds required include for SDL_GetError.
  ];

  meta = with lib; {
+11 −0
Original line number Diff line number Diff line
diff --git a/src/presenter.c b/src/presenter.c
index a082541..74bfbec 100644
--- a/src/presenter.c
+++ b/src/presenter.c
@@ -5,5 +5,6 @@
 #include <stdlib.h>
 #include "SDL_ttf.h"
+#include <SDL/SDL_error.h>
 #include "presenter.h"
 #include "execute.h"
 #include "list.h"