summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sys-libs/ncurses/files/ncurses-5.4-c++-templates.patch')
-rw-r--r--sys-libs/ncurses/files/ncurses-5.4-c++-templates.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/sys-libs/ncurses/files/ncurses-5.4-c++-templates.patch b/sys-libs/ncurses/files/ncurses-5.4-c++-templates.patch
new file mode 100644
index 000000000000..60c4b716e2de
--- /dev/null
+++ b/sys-libs/ncurses/files/ncurses-5.4-c++-templates.patch
@@ -0,0 +1,17 @@
+Fix building with -fno-implicit-templates.
+
+http://bugs.gentoo.org/show_bug.cgi?id=90819
+
+Patch by Mike Frysinger (C++ sucks btw)
+
+--- c++/demo.cc
++++ c++/demo.cc
+@@ -152,6 +152,8 @@
+ return FALSE;
+ }
+ };
++template class MyAction<UserData>;
++template class NCURSES_IMPEXP NCursesUserItem<UserData>;
+
+ class QuitItem : public NCursesMenuItem
+ {