summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Vinson <nvinson234@gmail.com>2017-01-04 19:31:17 -0800
committerLars Wendler <polynomial-c@gentoo.org>2017-01-05 07:49:55 +0100
commit284d5a25df8d884fe6f71f5019ccaa21f0d677eb (patch)
treed4eba6ae3de4061fa54573e63a62ab66fc7c6939 /x11-wm/amiwm/files
parentdev-ruby/rdiscount: add ruby24 (diff)
downloadgentoo-284d5a25df8d884fe6f71f5019ccaa21f0d677eb.tar.gz
gentoo-284d5a25df8d884fe6f71f5019ccaa21f0d677eb.tar.bz2
gentoo-284d5a25df8d884fe6f71f5019ccaa21f0d677eb.zip
x11-wm/amiwm: patch to add flex 2.6.3 support
Package-Manager: Portage-2.3.3, Repoman-2.3.1 Closes: https://github.com/gentoo/gentoo/pull/3333
Diffstat (limited to 'x11-wm/amiwm/files')
-rw-r--r--x11-wm/amiwm/files/amiwm-0.21_p2-flex-2.6.3-fix.patch31
1 files changed, 31 insertions, 0 deletions
diff --git a/x11-wm/amiwm/files/amiwm-0.21_p2-flex-2.6.3-fix.patch b/x11-wm/amiwm/files/amiwm-0.21_p2-flex-2.6.3-fix.patch
new file mode 100644
index 000000000000..ae89aafdae86
--- /dev/null
+++ b/x11-wm/amiwm/files/amiwm-0.21_p2-flex-2.6.3-fix.patch
@@ -0,0 +1,31 @@
+--- amiwm0.21pl2/lex.l
++++ amiwm0.21pl2/lex.l
+@@ -1,5 +1,6 @@
++%option noyywrap
+ %{
+ #include <stdio.h>
+ #include "gram.h"
+ extern char *progname;
+ extern int ParseError;
+--- amiwm0.21pl2/kbdlexer.l
++++ amiwm0.21pl2/kbdlexer.l
+@@ -1,5 +1,6 @@
++%option noyywrap
+ %{
+ #include <X11/Xmu/CharSet.h>
+ #include <string.h>
+
+ #include "libami.h"
+@@ -134,12 +135,9 @@ int parse_keyword(char *str, YYSTYPE *va
+
+ . { fprintf(stderr, "%s: illegal character \"%s\" ignored\n",
+ progname, yytext); }
+ %%
+
+-#ifndef yywrap
+-int yywrap() { return 1; }
+-#endif
+ #undef input
+ #define input() ((*inptr)?(*inptr++):0)
+ #undef unput
+ #define unput(c) (*--inptr=c)