]> git.ipfire.org Git - ipfire-3.x.git/commitdiff
pam: Copy patch files into repository.
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 7 Feb 2010 14:54:39 +0000 (15:54 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 7 Feb 2010 14:54:39 +0000 (15:54 +0100)
pkgs/core/pam/pam.nm
pkgs/core/pam/patches/Linux-PAM-1.1.0-no-yywrap-1.patch [new file with mode: 0644]

index ebed70d935faf0c163e1950b5a66456a9612cd96..b581ac71aefbeff5b96707f040c3e12ac24caf22 100644 (file)
@@ -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 (file)
index 0000000..62a4851
--- /dev/null
@@ -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