mirror of
https://github.com/openwrt/packages.git
synced 2025-12-21 21:24:31 +04:00
- Fix GCC 15 build with 2 patches from Gentoo [1][2] - Refresh existing patch - Extend 010-enable-nonroot-install.patch to remove "-o U -g G" from more install targets (fixes 'invalid user buildbot' in CI) [1]: https://github.com/gentoo/gentoo/blob/master/mail-mta/sendmail/files/sendmail-8.18.1-c23-sm_strtoll.patch [2]: https://github.com/gentoo/gentoo/blob/master/mail-mta/sendmail/files/sendmail-8.18.1-c23-ctime.patch Co-authored-by: W. Michael Petullo <mike@flyn.org> Signed-off-by: Aleksey Vasilenko <aleksey.vasilenko@gmail.com>
30 lines
699 B
Diff
30 lines
699 B
Diff
Bug: https://bugs.gentoo.org/944460
|
|
|
|
--- a/libsm/vfscanf.c
|
|
+++ b/libsm/vfscanf.c
|
|
@@ -240,13 +240,13 @@ literal:
|
|
/* FALLTHROUGH */
|
|
case 'd':
|
|
c = CT_INT;
|
|
- ccfn = (ULONGLONG_T (*)())sm_strtoll;
|
|
+ ccfn = (ULONGLONG_T (*)(const char *, char **, int))sm_strtoll;
|
|
base = 10;
|
|
break;
|
|
|
|
case 'i':
|
|
c = CT_INT;
|
|
- ccfn = (ULONGLONG_T (*)())sm_strtoll;
|
|
+ ccfn = (ULONGLONG_T (*)(const char *, char **, int))sm_strtoll;
|
|
base = 0;
|
|
break;
|
|
|
|
@@ -324,7 +324,7 @@ literal:
|
|
if (isupper(c))
|
|
flags |= LONG;
|
|
c = CT_INT;
|
|
- ccfn = (ULONGLONG_T (*)()) sm_strtoll;
|
|
+ ccfn = (ULONGLONG_T (*)(const char *, char **, int)) sm_strtoll;
|
|
base = 10;
|
|
break;
|
|
}
|