Files
packages/mail/sendmail/patches/220-sm_strtoll.patch
Aleksey Vasilenko 3000e1a420 sendmail: update to 8.18.1
- 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>
2025-09-20 23:11:51 +08:00

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;
}