From 9c387393179ef14f6ebde703dad08ed7706384b0 Mon Sep 17 00:00:00 2001 From: Akinori Hattori Date: Sun, 10 May 2020 18:31:10 +0900 Subject: [PATCH] app-editors/ee: fix build with >=sys-devel/gcc-10 Closes: https://bugs.gentoo.org/706538 Package-Manager: Portage-2.3.99, Repoman-2.3.22 Signed-off-by: Akinori Hattori --- app-editors/ee/ee-1.5.2.ebuild | 1 + app-editors/ee/files/ee-gcc-10.patch | 22 ++++++++++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 app-editors/ee/files/ee-gcc-10.patch diff --git a/app-editors/ee/ee-1.5.2.ebuild b/app-editors/ee/ee-1.5.2.ebuild index 832cb1b3e8fa..ad4bb78c8530 100644 --- a/app-editors/ee/ee-1.5.2.ebuild +++ b/app-editors/ee/ee-1.5.2.ebuild @@ -22,6 +22,7 @@ PATCHES=( "${FILESDIR}"/${PN}-init-location.patch "${FILESDIR}"/${PN}-signal.patch "${FILESDIR}"/${PN}-Wformat-security.patch + "${FILESDIR}"/${PN}-gcc-10.patch ) DOCS=( Changes README.${PN} ${PN}.i18n.guide ${PN}.msg ) diff --git a/app-editors/ee/files/ee-gcc-10.patch b/app-editors/ee/files/ee-gcc-10.patch new file mode 100644 index 000000000000..2577d76f25f6 --- /dev/null +++ b/app-editors/ee/files/ee-gcc-10.patch @@ -0,0 +1,22 @@ +--- a/new_curse.c ++++ b/new_curse.c +@@ -83,6 +83,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 */ -- 2.26.2