summaryrefslogtreecommitdiff
path: root/sys-auth/pam_smb/files/add-various-missing-includes.patch
blob: 0aa1ea48d32c8c670dbf576d809afa1e4cf067a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
From: Sam James <sam@gentoo.org>
Date: Wed, 30 Jun 2021 08:09:19 +0100
Subject: [PATCH] Add various missing includes
--- a/pamsmbd/md5.c
+++ b/pamsmbd/md5.c
@@ -39,6 +39,7 @@
  */
 
 #include "md5.h"
+#include <string.h>
 
 #ifdef TEST
 /*
@@ -46,7 +47,6 @@
  * The test program should print out the same values as given in section
  * A.5 of RFC 1321, reproduced below.
  */
-#include <string.h>
 main()
 {
     static const char *const test[7] = {
--- a/pamsmbd/md5driver.c
+++ b/pamsmbd/md5driver.c
@@ -38,6 +38,7 @@ Bug reports and feature requests should be sent to bugs@zetetic.net.
 */
 
 #include <strings.h>
+#include <string.h>
 #include "constants.h"
 #include "md5.h"
 #include "md5driver.h"
--- a/smbval/session.c
+++ b/smbval/session.c
@@ -22,11 +22,8 @@
    along with this program; if not, write to the Free Software
    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 */
-#if defined(__FreeBSD__) || defined(__APPLE__)
 #include <stdlib.h>
-#else
 #include <malloc.h>
-#endif
 #include <string.h>
 
 int RFCNB_errno = 0;
--- a/smbval/smblib-util.c
+++ b/smbval/smblib-util.c
@@ -23,6 +23,7 @@
    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 */
 
+#include <string.h>
 #include "smblib-priv.h"
 #if defined(__FreeBSD__) || defined(__APPLE__)
 #include <stdlib.h>
--- a/smbval/smblib.c
+++ b/smbval/smblib.c
@@ -25,6 +25,7 @@
 */
 
 #include "config.h"
+#include <ctype.h>
 #include <string.h>
 #if defined(__FreeBSD__) || defined(__APPLE__)
 #include <stdlib.h>
-- 
2.32.0