diff --git a/recipes-games/freeciv/freeciv/QPainterPathInc.patch b/recipes-games/freeciv/freeciv/QPainterPathInc.patch new file mode 100644 index 0000000..c459b95 --- /dev/null +++ b/recipes-games/freeciv/freeciv/QPainterPathInc.patch @@ -0,0 +1,36 @@ +Fix build with latest Qt + +Upstream-Status: Submitted + +Signed-off-by: Marko Lindqvist + +diff --git a/client/gui-qt/canvas.cpp b/client/gui-qt/canvas.cpp +index 4c3ac0c03f..9e230f4c16 100644 +--- a/client/gui-qt/canvas.cpp ++++ b/client/gui-qt/canvas.cpp +@@ -1,4 +1,4 @@ +-/********************************************************************** ++/*********************************************************************** + Freeciv - Copyright (C) 1996-2005 - Freeciv Development Team + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by +@@ -18,6 +18,7 @@ + // Qt + #include + #include ++#include + + // qt-client + #include "canvas.h" +diff --git a/client/gui-qt/dialogs.cpp b/client/gui-qt/dialogs.cpp +index b736908bb0..32501f2bbb 100644 +--- a/client/gui-qt/dialogs.cpp ++++ b/client/gui-qt/dialogs.cpp +@@ -24,6 +24,7 @@ + #include + #include + #include ++#include + #include + #include + #include diff --git a/recipes-games/freeciv/freeciv_2.6.2.bb b/recipes-games/freeciv/freeciv_2.6.2.bb index 6ceaa5a..6a0271f 100644 --- a/recipes-games/freeciv/freeciv_2.6.2.bb +++ b/recipes-games/freeciv/freeciv_2.6.2.bb @@ -6,6 +6,7 @@ DEPENDS += "libsdl2-image libsdl2-ttf libsdl2-gfx freetype" SRC_URI += "\ ${SOURCEFORGE_MIRROR}/freeciv/freeciv-${PV}.tar.bz2 \ +file://QPainterPathInc.patch \ " SRC_URI[md5sum] = "2c8b388ff8b814487477793d72462cbb"