summaryrefslogtreecommitdiff
path: root/wm/amiwm/patches/patch-ab
blob: 5d2bf3eec129ebc258e920010c230ae6f930190a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
$NetBSD: patch-ab,v 1.2 2017/01/05 09:40:00 jperkin Exp $

Ensure the local yywrap is used.

--- lex.l.orig	1997-12-12 17:21:58.000000000 +0000
+++ lex.l
@@ -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 *);
 %}