1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: package/*/hfsutils/hotfix-sys_errlist.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 strerror.c:34:14: error: conflicting types for 'sys_errlist'; have 'char *[]'
15 34 | extern char *sys_errlist[];
17 In file included from /srv/t2/build/sparc-24.12-generic-sparc-v8-cross-linux/usr/include/stdio.h:853,
19 /srv/t2/build/sparc-24.12-generic-sparc-v8-cross-linux/usr/include/bits/sys_errlist.h:27:26: note: previous declaration of 'sys_errlist' with type 'const char * const[]'
20 27 | extern const char *const sys_errlist[];
22 --- hfsutils-3.2.6/strerror.c.vanilla 2024-12-05 19:17:57.986475237 +0100
23 +++ hfsutils-3.2.6/strerror.c 2024-12-05 19:19:15.729808071 +0100
26 # ifdef HAVE_SYS_ERRLIST
28 -extern char *sys_errlist[];
29 +//extern const char *sys_errlist[];