-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
epatch "${FILESDIR}"/${P}-fortify.patch
epatch "${FILESDIR}"/${PN}-1.4.1_pre20091009-dash.patch
epatch "${FILESDIR}"/${P}-no-glibc.patch
+ epatch "${FILESDIR}"/${P}-flex-2.6.3.patch
epatch_user
--- /dev/null
+https://bugs.gentoo.org/604610
+
+New flex seems to define yywrap even for non-yywrap lexers.
+diff --git a/src/base/init/lexer.l.in b/src/base/init/lexer.l.in
+index aeaa2e2..9e42ddf 100644
+--- a/src/base/init/lexer.l.in
++++ b/src/base/init/lexer.l.in
+@@ -810,7 +810,2 @@ static void enter_includefile(char * fname)
+
+-
+-#ifdef yywrap
+- error "yywrap defined elsewere, need our own one"
+-#endif
+-
+ int yywrap(void) /* this gets called at EOF of a parsed file */