aboutsummaryrefslogtreecommitdiffstats
path: root/main/pcmciautils/disable_yywrap.patch
diff options
context:
space:
mode:
authorTuan M. Hoang <tmhoang@flatglobe.org>2017-03-17 07:10:09 -0400
committerLeonardo Arena <rnalrd@alpinelinux.org>2017-03-17 13:03:23 +0000
commit6c386727deed8bcac33866a01b3009195f32d53d (patch)
tree4fb192b6f95a7874f20aa89a8b83709243740bc4 /main/pcmciautils/disable_yywrap.patch
parent10c986bbbf62ef9ed534b34d0d17ee7a51ae8141 (diff)
downloadaports-6c386727deed8bcac33866a01b3009195f32d53d.tar.bz2
aports-6c386727deed8bcac33866a01b3009195f32d53d.tar.xz
main/pcmciautils: fix bug
Source : https://github.com/openwrt/packages/blob/master/utils/pcmciautils/patches/
Diffstat (limited to 'main/pcmciautils/disable_yywrap.patch')
-rw-r--r--main/pcmciautils/disable_yywrap.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/main/pcmciautils/disable_yywrap.patch b/main/pcmciautils/disable_yywrap.patch
new file mode 100644
index 0000000000..e30abb0d10
--- /dev/null
+++ b/main/pcmciautils/disable_yywrap.patch
@@ -0,0 +1,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
+
+ ======================================================================*/