pcmciautils: import from oldpackages

-import from oldpackages
 -add PKG_LICENSE, PKG_LICENSE_FILES, PKG_MAINTAINER
 -add two build fix patches

Signed-off-by: Tomasz Maciej Nowak <tomek_n@o2.pl>
This commit is contained in:
Tomasz Maciej Nowak
2017-01-21 16:37:41 +01:00
parent 42d6e40423
commit d901cea1d5
7 changed files with 185 additions and 0 deletions
@@ -0,0 +1,11 @@
--- a/src/yacc_config.y
+++ b/src/yacc_config.y
@@ -40,7 +40,7 @@
%union {
char *str;
- u_long num;
+ unsigned long num;
struct adjust_list_t *adjust;
}
@@ -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
======================================================================*/