From: Michael Tremer Date: Sun, 7 Feb 2010 14:54:39 +0000 (+0100) Subject: pam: Copy patch files into repository. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0a9ec07d4b55cf1d9ea26950236aec7010c09849;p=ipfire-3.x.git pam: Copy patch files into repository. --- diff --git a/pkgs/core/pam/pam.nm b/pkgs/core/pam/pam.nm index ebed70d93..b581ac71a 100644 --- a/pkgs/core/pam/pam.nm +++ b/pkgs/core/pam/pam.nm @@ -45,8 +45,6 @@ endef PKG_TARBALL = $(THISAPP).tar.bz2 -PKG_PATCHES += $(THISAPP)-no-yywrap-1.patch - ############################################################################### # Installation Details ############################################################################### diff --git a/pkgs/core/pam/patches/Linux-PAM-1.1.0-no-yywrap-1.patch b/pkgs/core/pam/patches/Linux-PAM-1.1.0-no-yywrap-1.patch new file mode 100644 index 000000000..62a485184 --- /dev/null +++ b/pkgs/core/pam/patches/Linux-PAM-1.1.0-no-yywrap-1.patch @@ -0,0 +1,28 @@ +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 +--- Linux-PAM-0.99.6.3/conf/pam_conv1/pam_conv_l.c 2006-09-06 11:29:19.000000000 +0200 ++++ Linux-PAM-0.99.6.3.new/conf/pam_conv1/pam_conv_l.c 2007-01-10 23:19:05.000000000 +0100 +@@ -494,7 +494,9 @@ + #ifdef __cplusplus + extern "C" int yywrap (void ); + #else +-extern int yywrap (void ); ++int yywrap (void ) { ++ return 1; ++} + #endif + #endif + +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 +--- Linux-PAM-0.99.6.3/doc/specs/parse_l.c 2006-09-06 11:29:19.000000000 +0200 ++++ Linux-PAM-0.99.6.3.new/doc/specs/parse_l.c 2007-01-10 23:21:55.000000000 +0100 +@@ -480,7 +480,9 @@ + #ifdef __cplusplus + extern "C" int yywrap (void ); + #else +-extern int yywrap (void ); ++int yywrap (void ) { ++ return 1; ++} + #endif + #endif +