libs/libpam: port some uclibc xdr code to yppasswd_xdr.c
[openwrt/svn-archive/archive.git] / libs / libpam / patches / 002-no_yywrap.patch
1 --- a/conf/pam_conv1/pam_conv_l.c
2 +++ b/conf/pam_conv1/pam_conv_l.c
3 @@ -534,7 +534,9 @@ void yyset_lineno (int line_number );
4 #ifdef __cplusplus
5 extern "C" int yywrap (void );
6 #else
7 -extern int yywrap (void );
8 +int yywrap (void ) {
9 + return 1;
10 +}
11 #endif
12 #endif
13
14 --- a/doc/specs/parse_l.c
15 +++ b/doc/specs/parse_l.c
16 @@ -520,7 +520,9 @@ void yyset_lineno (int line_number );
17 #ifdef __cplusplus
18 extern "C" int yywrap (void );
19 #else
20 -extern int yywrap (void );
21 +int yywrap (void ) {
22 + return 1;
23 +}
24 #endif
25 #endif
26