* imported qemu/hotfix-glibc-2.41.patch
[t2sde.git] / package / archiver / mine / hotfix-clang.patch
blob39d72edf64a4d254650a0a165ef3a69f58d03e4a
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: package/*/mine/hotfix-clang.patch
3 # Copyright (C) 2023 The T2 SDE Project
4 #
5 # This Copyright note is generated by scripts/Create-CopyPatch,
6 # more information can be found in the files COPYING and README.
7 #
8 # This patch file is dual-licensed. It is available under the license the
9 # patched project is licensed under, as long as it is an OpenSource license
10 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
11 # of the GNU General Public License version 2 as used by the T2 SDE.
12 # --- T2-COPYRIGHT-NOTE-END ---
14 --- mine-0.23/cdb-0.75/seek_set.c.vanilla 2023-05-12 19:23:09.910071399 +0200
15 +++ mine-0.23/cdb-0.75/seek_set.c 2023-05-12 19:23:19.250072073 +0200
16 @@ -1,4 +1,5 @@
17 #include <sys/types.h>
18 +#include <unistd.h>
19 #include "seek.h"
21 #define SET 0 /* sigh */
22 --- mine-0.23/cdb-0.75/cdbget.c.vanilla 2023-05-12 19:22:21.255067886 +0200
23 +++ mine-0.23/cdb-0.75/cdbget.c 2023-05-12 19:22:38.410069124 +0200
24 @@ -23,7 +23,7 @@
25 static struct cdb c;
26 char buf[1024];
28 -main(int argc,char **argv)
29 +int main(int argc,char **argv)
31 char *key;
32 int r;
33 --- ./showfile.c.vanilla 2023-05-13 19:48:43.225572382 +0200
34 +++ ./showfile.c 2023-05-13 19:48:50.140572882 +0200
35 @@ -20,6 +20,7 @@
36 #include <sys/types.h>
37 #include <dirent.h>
38 #include <stdio.h>
39 +#include <string.h>
41 #include "mine.h"
43 --- ./libtar-1.2.11/libtar/libtar.c.vanilla 2023-05-13 19:47:59.570569230 +0200
44 +++ ./libtar-1.2.11/libtar/libtar.c 2023-05-13 19:48:13.325570223 +0200
45 @@ -13,6 +13,7 @@
46 #include <config.h>
47 #include <libtar.h>
49 +#include <stdlib.h>
50 #include <stdio.h>
51 #include <fcntl.h>
52 #include <errno.h>
53 --- ./libtar-1.2.11/lib/extract.c.vanilla 2023-05-13 19:47:28.362566977 +0200
54 +++ ./libtar-1.2.11/lib/extract.c 2023-05-13 19:47:35.429567487 +0200
55 @@ -18,6 +18,7 @@
56 #include <fcntl.h>
57 #include <errno.h>
58 #include <utime.h>
59 +#include <string.h>
61 #ifdef STDC_HEADERS
62 # include <stdlib.h>
63 --- mine-0.23/cdb-0.75/seek_cur.c.vanilla 2023-05-13 19:53:26.109592808 +0200
64 +++ mine-0.23/cdb-0.75/seek_cur.c 2023-05-13 19:53:39.400593767 +0200
65 @@ -1,4 +1,6 @@
66 #include <sys/types.h>
67 +#include <unistd.h>
69 #include "seek.h"
71 #define CUR 1 /* sigh */
72 --- mine-0.23/cdb-0.75/cdbdump.c.vanilla 2023-05-13 19:56:38.274606683 +0200
73 +++ mine-0.23/cdb-0.75/cdbdump.c 2023-05-13 19:56:41.869606943 +0200
74 @@ -1,3 +1,4 @@
75 +#include <unistd.h>
76 #include "uint32.h"
77 #include "fmt.h"
78 #include "buffer.h"
79 --- mine-0.23/cdb-0.75/cdbmake.c.vanilla 2023-05-13 19:55:33.595602013 +0200
80 +++ mine-0.23/cdb-0.75/cdbmake.c 2023-05-13 19:56:17.525605185 +0200
81 @@ -1,3 +1,5 @@
82 +#include <unistd.h>
83 +#include <stdio.h>
84 #include "error.h"
85 #include "open.h"
86 #include "strerr.h"
87 @@ -36,7 +38,7 @@
89 static struct cdb_make c;
91 -main(int argc,char **argv)
92 +int main(int argc,char **argv)
94 unsigned int klen;
95 unsigned int dlen;
96 --- mine-0.23/cdb-0.75/cdbdump.c.vanilla 2023-05-13 19:57:44.601611472 +0200
97 +++ mine-0.23/cdb-0.75/cdbdump.c 2023-05-13 19:57:49.852611851 +0200
98 @@ -59,7 +59,7 @@
100 char strnum[FMT_ULONG];
102 -main()
103 +int main()
105 uint32 eod;
106 uint32 klen;
107 --- mine-0.23/cdb-0.75/cdbstats.c.vanilla 2023-05-13 19:58:35.688615161 +0200
108 +++ mine-0.23/cdb-0.75/cdbstats.c 2023-05-13 19:59:01.491617024 +0200
109 @@ -1,3 +1,5 @@
110 +#include <unistd.h>
111 +#include "str.h"
112 #include "uint32.h"
113 #include "fmt.h"
114 #include "buffer.h"
115 @@ -68,7 +69,7 @@
116 static unsigned long numrecords;
117 static unsigned long numd[11];
119 -main()
120 +int main()
122 uint32 eod;
123 uint32 klen;
124 --- mine-0.23/cdb-0.75/cdbtest.c.vanilla 2023-05-13 20:02:17.141631151 +0200
125 +++ mine-0.23/cdb-0.75/cdbtest.c 2023-05-13 20:02:47.976633377 +0200
126 @@ -1,3 +1,5 @@
127 +#include <unistd.h>
128 +#include "str.h"
129 #include "uint32.h"
130 #include "fmt.h"
131 #include "buffer.h"
132 @@ -66,7 +67,7 @@
134 static struct cdb c;
136 -main()
137 +int main()
139 uint32 eod;
140 uint32 klen;
141 --- mine-0.23/cdb-0.75/testzero.c.vanilla 2023-05-13 20:04:37.634641295 +0200
142 +++ mine-0.23/cdb-0.75/testzero.c 2023-05-13 20:04:57.646642740 +0200
143 @@ -1,3 +1,4 @@
144 +#include <unistd.h>
145 #include "uint32.h"
146 #include "scan.h"
147 #include "strerr.h"
148 @@ -14,7 +15,7 @@
149 static char data[65536];
150 struct cdb_make c;
152 -main(int argc,char **argv)
153 +int main(int argc,char **argv)
155 int fd;
156 unsigned long loop;