1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: package/*/fget/hotfix-gcc14.patch
3 # Copyright (C) 2024 The T2 SDE Project
5 # This Copyright note is generated by scripts/Create-CopyPatch,
6 # more information can be found in the files COPYING and README.
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 --- fget/fget.c.vanilla 2024-03-28 20:19:39.893209999 +0100
15 +++ fget/fget.c 2024-03-28 20:21:00.382205945 +0100
19 #include <sys/types.h>
25 stralloc_cats(request,"\r\n\r\n");
28 -int isdigit(char c) {
30 return (c>='0' && c<='9');
33 --- fget/buffer.h.vanilla 2024-03-28 20:21:20.811204916 +0100
34 +++ fget/buffer.h 2024-03-28 20:32:31.512171132 +0100
40 + long (*op)(int, const void *, unsigned long);
43 -#define BUFFER_INIT(op,fd,buf,len) { (buf), 0, (len), (fd), (op) }
44 +#define BUFFER_INIT(op,fd,buf,len) { (buf), 0, (unsigned int)(len), (fd), (op) }
45 #define BUFFER_INSIZE 8192
46 #define BUFFER_OUTSIZE 8192
48 --- fget/buffer_put.c.vanilla 2024-03-28 20:32:11.336172148 +0100
49 +++ fget/buffer_put.c 2024-03-28 20:32:57.046169845 +0100
54 -static int allwrite(int (*op)(),int fd,const char *buf,unsigned int len)
55 +static int allwrite(long (*op)(int, const void *, unsigned long),
56 + int fd,const char *buf,unsigned int len)