packages/libs/libpam/patches/002-no_yywrap.patch
Nikos Mavrogiannopoulos 7257e863d7 Added Linux-PAM and updated description.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
2014-06-18 23:55:33 +02:00

26 lines
522 B
Diff

--- a/conf/pam_conv1/pam_conv_l.c
+++ b/conf/pam_conv1/pam_conv_l.c
@@ -534,7 +534,9 @@ void yyset_lineno (int line_number );
#ifdef __cplusplus
extern "C" int yywrap (void );
#else
-extern int yywrap (void );
+int yywrap (void ) {
+ return 1;
+}
#endif
#endif
--- a/doc/specs/parse_l.c
+++ b/doc/specs/parse_l.c
@@ -520,7 +520,9 @@ void yyset_lineno (int line_number );
#ifdef __cplusplus
extern "C" int yywrap (void );
#else
-extern int yywrap (void );
+int yywrap (void ) {
+ return 1;
+}
#endif
#endif