1 |
commit: 0490b4b3276c58900eab8c2a798eecfa7060304f |
2 |
Author: David Seifert <soap <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Mar 31 09:40:16 2021 +0000 |
4 |
Commit: David Seifert <soap <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Mar 31 09:40:16 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0490b4b3 |
7 |
|
8 |
games-puzzle/greedy: Add missing includes |
9 |
|
10 |
Closes: https://bugs.gentoo.org/716566 |
11 |
Package-Manager: Portage-3.0.18, Repoman-3.0.3 |
12 |
Signed-off-by: David Seifert <soap <AT> gentoo.org> |
13 |
|
14 |
games-puzzle/greedy/files/greedy-0.2.0-missing-include.patch | 12 ++++++++++++ |
15 |
games-puzzle/greedy/greedy-0.2.0-r2.ebuild | 2 ++ |
16 |
2 files changed, 14 insertions(+) |
17 |
|
18 |
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 |
19 |
new file mode 100644 |
20 |
index 00000000000..a728cde5b34 |
21 |
--- /dev/null |
22 |
+++ b/games-puzzle/greedy/files/greedy-0.2.0-missing-include.patch |
23 |
@@ -0,0 +1,12 @@ |
24 |
+--- a/greedy.c |
25 |
++++ b/greedy.c |
26 |
+@@ -13,6 +13,9 @@ |
27 |
+ |
28 |
+ #include <ncurses.h> |
29 |
+ #include <stdlib.h> |
30 |
++#include <time.h> |
31 |
++#include <unistd.h> |
32 |
++#include <string.h> |
33 |
+ #include "playmodes.h" |
34 |
+ #include "playmodes.c" |
35 |
+ |
36 |
|
37 |
diff --git a/games-puzzle/greedy/greedy-0.2.0-r2.ebuild b/games-puzzle/greedy/greedy-0.2.0-r2.ebuild |
38 |
index 37e76149bcf..aea669387c1 100644 |
39 |
--- a/games-puzzle/greedy/greedy-0.2.0-r2.ebuild |
40 |
+++ b/games-puzzle/greedy/greedy-0.2.0-r2.ebuild |
41 |
@@ -17,6 +17,8 @@ RDEPEND="sys-libs/ncurses:0=" |
42 |
DEPEND="${RDEPEND}" |
43 |
BDEPEND="virtual/pkgconfig" |
44 |
|
45 |
+PATCHES=( "${FILESDIR}"/${P}-missing-include.patch ) |
46 |
+ |
47 |
src_prepare() { |
48 |
default |