app-editors/aee: fix build with >=sys-devel/gcc-10

Closes: https://bugs.gentoo.org/708720
Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Akinori Hattori <hattya@gentoo.org>
This commit is contained in:
Akinori Hattori
2020-05-10 18:42:44 +09:00
parent 0eabce623b
commit 4eaf9db562
3 changed files with 46 additions and 0 deletions
+1
View File
@@ -21,6 +21,7 @@ DEPEND="${RDEPEND}"
PATCHES=(
"${FILESDIR}"/${P}-ae-location.patch
"${FILESDIR}"/${PN}-Wformat-security.patch
"${FILESDIR}"/${PN}-gcc-10.patch
)
DOCS=( Changes README.${PN} ${PN}.i18n.guide ${PN}.msg )
+1
View File
@@ -21,6 +21,7 @@ DEPEND="${RDEPEND}"
PATCHES=(
"${FILESDIR}"/${PN}-ae-location.patch
"${FILESDIR}"/${PN}-Wformat-security.patch
"${FILESDIR}"/${PN}-gcc-10.patch
)
DOCS=( Changes README.${PN} ${PN}.i18n.guide ${PN}.msg )
+44
View File
@@ -0,0 +1,44 @@
--- a/Xcurse.c
+++ b/Xcurse.c
@@ -37,6 +37,8 @@
extern int eightbit;
+struct _line *top_of_win;
+
static WINDOW *virtual_scr;
WINDOW *curscr;
WINDOW *stdscr;
--- a/Xcurse.h
+++ b/Xcurse.h
@@ -132,7 +132,7 @@
int number;
};
-struct _line *top_of_win;
+extern struct _line *top_of_win;
typedef struct WIND {
int SR; /* starting row */
--- a/new_curse.c
+++ b/new_curse.c
@@ -85,6 +85,8 @@
#endif
+struct _line *top_of_win;
+
WINDOW *curscr;
static WINDOW *virtual_scr;
WINDOW *stdscr;
--- a/new_curse.h
+++ b/new_curse.h
@@ -161,7 +161,7 @@
int number;
};
-struct _line *top_of_win;
+extern struct _line *top_of_win;
typedef struct WIND {
int SR; /* starting row */