aboutsummaryrefslogtreecommitdiffstats
path: root/main/pcmciautils/disable_yywrap.patch
blob: e30abb0d10763dc9c9018c33ac09c5a41a8ffdee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
--- pcmciautils-018/src/lex_config.l
+++ pcmciautils-018/src/lex_config.l
@@ -1,8 +1,8 @@
 /* Special state for handling include files */
 %x src
-%option noinput nounput
+%option noinput nounput noyywrap
 
 %{
 /*
  * Startup tool for non statically mapped PCMCIA sockets
  *
@@ -75,14 +75,10 @@ module		/* skip */ ;
 
 .		return yytext[0];
 
 %%
 
-#ifndef yywrap
-int yywrap() { return 1; }
-#endif
-
 /*======================================================================
 
     Stuff to parse basic data types
 
 ======================================================================*/