summaryrefslogtreecommitdiffstats
path: root/debian/patches/string.patch
blob: 52887c1e04a2384c53de1c68a43ce13592202251 (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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
Description: Use string.h to fix implicit-function-declaration issues
Author: Gianfranco Costamagna <locutusofborg@debian.org>
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1066204
Last-Update: 2024-03-28

--- kbuild-0.1.9998svn3589+dfsg.orig/src/sed/lib/utils.c
+++ kbuild-0.1.9998svn3589+dfsg/src/sed/lib/utils.c
@@ -27,7 +27,9 @@
 
 #ifdef HAVE_STRINGS_H
 # include <strings.h>
-#else
+#endif /* HAVE_STRING_H */
+
+#ifdef HAVE_STRING_H
 # include <string.h>
 #endif /* HAVE_STRINGS_H */
 
--- kbuild-0.1.9998svn3589+dfsg.orig/src/sed/sed/execute.c
+++ kbuild-0.1.9998svn3589+dfsg/src/sed/sed/execute.c
@@ -46,9 +46,12 @@ extern int errno;
 
 #ifdef HAVE_STRINGS_H
 # include <strings.h>
-#else
+#endif /* HAVE_STRING_H */
+
+#ifdef HAVE_STRING_H
 # include <string.h>
-#endif /*HAVE_STRINGS_H*/
+#endif /* HAVE_STRINGS_H */
+
 #ifdef HAVE_MEMORY_H
 # include <memory.h>
 #endif
--- kbuild-0.1.9998svn3589+dfsg.orig/src/sed/sed/fmt.c
+++ kbuild-0.1.9998svn3589+dfsg/src/sed/sed/fmt.c
@@ -23,6 +23,14 @@
 #include <ctype.h>
 #include <sys/types.h>
 
+#ifdef HAVE_STRINGS_H
+# include <strings.h>
+#endif /* HAVE_STRING_H */
+
+#ifdef HAVE_STRING_H
+# include <string.h>
+#endif /* HAVE_STRINGS_H */
+
 #if HAVE_LIMITS_H
 # include <limits.h>
 #endif
--- kbuild-0.1.9998svn3589+dfsg.orig/src/sed/sed/mbcs.c
+++ kbuild-0.1.9998svn3589+dfsg/src/sed/sed/mbcs.c
@@ -18,6 +18,14 @@
 #include "sed.h"
 #include <stdlib.h>
 
+#ifdef HAVE_STRINGS_H
+# include <strings.h>
+#endif /* HAVE_STRING_H */
+
+#ifdef HAVE_STRING_H
+# include <string.h>
+#endif /* HAVE_STRINGS_H */
+
 int mb_cur_max;
 
 #ifdef HAVE_MBRTOWC
--- kbuild-0.1.9998svn3589+dfsg.orig/src/sed/sed/regexp.c
+++ kbuild-0.1.9998svn3589+dfsg/src/sed/sed/regexp.c
@@ -17,6 +17,14 @@
 
 #include "sed.h"
 
+#ifdef HAVE_STRINGS_H
+# include <strings.h>
+#endif /* HAVE_STRING_H */
+
+#ifdef HAVE_STRING_H
+# include <string.h>
+#endif /* HAVE_STRINGS_H */
+
 #include <ctype.h>
 #include <stdio.h>
 #ifdef HAVE_STDLIB_H
--- kbuild-0.1.9998svn3589+dfsg.orig/src/sed/sed/sed.c
+++ kbuild-0.1.9998svn3589+dfsg/src/sed/sed/sed.c
@@ -24,11 +24,15 @@
 
 
 #include <stdio.h>
+
 #ifdef HAVE_STRINGS_H
 # include <strings.h>
-#else
+#endif /* HAVE_STRING_H */
+
+#ifdef HAVE_STRING_H
 # include <string.h>
-#endif /*HAVE_STRINGS_H*/
+#endif /* HAVE_STRINGS_H */
+
 #ifdef HAVE_MEMORY_H
 # include <memory.h>
 #endif