diff options
author | jperkin <jperkin> | 2017-01-05 09:40:00 +0000 |
---|---|---|
committer | jperkin <jperkin> | 2017-01-05 09:40:00 +0000 |
commit | bf2430b88a0da677b6461ea660ae0685b40660d3 (patch) | |
tree | d3a9c76a36912da5058aa45bd0417a65eb764844 /wm/amiwm/patches/patch-ab | |
parent | 70df8e8d379acc87ece6013ecc0e50d36ec8d09e (diff) | |
download | pkgsrc-bf2430b88a0da677b6461ea660ae0685b40660d3.tar.gz |
Ensure the local yywrap is used. Fixes build with newer flex.
Diffstat (limited to 'wm/amiwm/patches/patch-ab')
-rw-r--r-- | wm/amiwm/patches/patch-ab | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/wm/amiwm/patches/patch-ab b/wm/amiwm/patches/patch-ab index 6f0cefa1260..5d2bf3eec12 100644 --- a/wm/amiwm/patches/patch-ab +++ b/wm/amiwm/patches/patch-ab @@ -1,12 +1,15 @@ -$NetBSD: patch-ab,v 1.1 2010/04/29 00:02:07 dholland Exp $ +$NetBSD: patch-ab,v 1.2 2017/01/05 09:40:00 jperkin Exp $ ---- lex.l~ 1997-12-12 17:21:58.000000000 +0000 +Ensure the local yywrap is used. + +--- lex.l.orig 1997-12-12 17:21:58.000000000 +0000 +++ lex.l -@@ -6,7 +6,7 @@ extern int ParseError; +@@ -6,7 +6,8 @@ extern int ParseError; extern FILE *rcfile; #undef yyin #define yyin rcfile -#define yywrap() 1 ++#undef yywrap +static int yywrap(void) { return 1; } extern int parse_keyword(char *); void fixup_string(char *, char *); |