Add libpam
[openwrt/svn-archive/archive.git] / libs / libpam / patches / 02-no_yywrap.patch
1 diff -urN Linux-PAM-0.99.6.3/conf/pam_conv1/pam_conv_l.c Linux-PAM-0.99.6.3.new/conf/pam_conv1/pam_conv_l.c
2 --- Linux-PAM-0.99.6.3/conf/pam_conv1/pam_conv_l.c 2006-09-06 11:29:19.000000000 +0200
3 +++ Linux-PAM-0.99.6.3.new/conf/pam_conv1/pam_conv_l.c 2007-01-10 23:19:05.000000000 +0100
4 @@ -494,7 +494,9 @@
5 #ifdef __cplusplus
6 extern "C" int yywrap (void );
7 #else
8 -extern int yywrap (void );
9 +int yywrap (void ) {
10 + return 1;
11 +}
12 #endif
13 #endif
14
15 diff -urN Linux-PAM-0.99.6.3/doc/specs/parse_l.c Linux-PAM-0.99.6.3.new/doc/specs/parse_l.c
16 --- Linux-PAM-0.99.6.3/doc/specs/parse_l.c 2006-09-06 11:29:19.000000000 +0200
17 +++ Linux-PAM-0.99.6.3.new/doc/specs/parse_l.c 2007-01-10 23:21:55.000000000 +0100
18 @@ -480,7 +480,9 @@
19 #ifdef __cplusplus
20 extern "C" int yywrap (void );
21 #else
22 -extern int yywrap (void );
23 +int yywrap (void ) {
24 + return 1;
25 +}
26 #endif
27 #endif
28