File pam_smb-2.0.0rc6-gcc-fix.patch of Package pam_smb

--- pamsmbd/md5.c
+++ pamsmbd/md5.c
@@ -38,6 +38,7 @@
   1999-05-03 lpd Original version.
  */
 
+#include <string.h>
 #include "md5.h"
 
 #ifdef TEST
--- pamsmbd/md5driver.c
+++ pamsmbd/md5driver.c
@@ -38,6 +38,7 @@
 */
 
 #include <strings.h>
+#include <string.h>
 #include "constants.h"
 #include "md5.h"
 #include "md5driver.h"
--- pamsmbd/server.c
+++ pamsmbd/server.c
@@ -43,6 +43,8 @@
 #include <time.h>
 #include <sys/time.h>
 
+#include <sys/msg.h>
+
 #include "pamsmbd.h"
 
 void sighup_handler(int signum);
--- pamsmbm/support.c
+++ pamsmbm/support.c
@@ -134,8 +134,9 @@
 {
 	int retval;
 	struct pam_conv *conv;
-
-	retval = pam_get_item(	pamh, PAM_CONV,  (const void **) &conv ) ; 
+	struct pam_conv **ptr_conv = &conv;
+        
+	retval = pam_get_item(	pamh, PAM_CONV,  (const void **) ptr_conv ) ; 
 	if ( retval == PAM_SUCCESS )
 		{
 	  		retval = conv->conv( 	nargs,  
--- smbval/smblib-util.c
+++ smbval/smblib-util.c
@@ -30,6 +30,7 @@
 #include <malloc.h>
 #endif
 
+#include <string.h>
 #include "rfcnb.h"
 
 int RFCNB_Free_Pkt(struct RFCNB_Pkt *pkt);
@@ -793,5 +794,5 @@
 
     }
   }
-
+  return 1;
 }
openSUSE Build Service is sponsored by