commit:     0490b4b3276c58900eab8c2a798eecfa7060304f
Author:     David Seifert <soap <AT> gentoo <DOT> org>
AuthorDate: Wed Mar 31 09:40:16 2021 +0000
Commit:     David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Wed Mar 31 09:40:16 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0490b4b3

games-puzzle/greedy: Add missing includes

Closes: https://bugs.gentoo.org/716566
Package-Manager: Portage-3.0.18, Repoman-3.0.3
Signed-off-by: David Seifert <soap <AT> gentoo.org>

 games-puzzle/greedy/files/greedy-0.2.0-missing-include.patch | 12 ++++++++++++
 games-puzzle/greedy/greedy-0.2.0-r2.ebuild                   |  2 ++
 2 files changed, 14 insertions(+)

diff --git a/games-puzzle/greedy/files/greedy-0.2.0-missing-include.patch 
b/games-puzzle/greedy/files/greedy-0.2.0-missing-include.patch
new file mode 100644
index 00000000000..a728cde5b34
--- /dev/null
+++ b/games-puzzle/greedy/files/greedy-0.2.0-missing-include.patch
@@ -0,0 +1,12 @@
+--- a/greedy.c
++++ b/greedy.c
+@@ -13,6 +13,9 @@
+ 
+ #include <ncurses.h>
+ #include <stdlib.h>
++#include <time.h>
++#include <unistd.h>
++#include <string.h>
+ #include "playmodes.h"
+ #include "playmodes.c"
+ 

diff --git a/games-puzzle/greedy/greedy-0.2.0-r2.ebuild 
b/games-puzzle/greedy/greedy-0.2.0-r2.ebuild
index 37e76149bcf..aea669387c1 100644
--- a/games-puzzle/greedy/greedy-0.2.0-r2.ebuild
+++ b/games-puzzle/greedy/greedy-0.2.0-r2.ebuild
@@ -17,6 +17,8 @@ RDEPEND="sys-libs/ncurses:0="
 DEPEND="${RDEPEND}"
 BDEPEND="virtual/pkgconfig"
 
+PATCHES=( "${FILESDIR}"/${P}-missing-include.patch )
+
 src_prepare() {
        default
 

Reply via email to