mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-01-06 02:17:34 -08:00
mail-mta/sendmail: complete c23/gcc-15 fix
Bug: https://bugs.gentoo.org/944460 Signed-off-by: Cristian Othón Martínez Vera <cfuga@cfuga.mx> Part-of: https://github.com/gentoo/gentoo/pull/41539 Closes: https://github.com/gentoo/gentoo/pull/41539 Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
parent
7a27623538
commit
37d3847717
29
mail-mta/sendmail/files/sendmail-8.18.1-c23-sm_strtoll.patch
Normal file
29
mail-mta/sendmail/files/sendmail-8.18.1-c23-sm_strtoll.patch
Normal file
@ -0,0 +1,29 @@
|
||||
Bug: https://bugs.gentoo.org/944460
|
||||
|
||||
--- a/libsm/vfscanf.c
|
||||
+++ b/libsm/vfscanf.c
|
||||
@@ -240,13 +240,13 @@
|
||||
/* 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 @@
|
||||
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;
|
||||
}
|
||||
@ -66,7 +66,8 @@ PDEPEND="
|
||||
|
||||
src_prepare() {
|
||||
eapply "${FILESDIR}"/${PN}-8.16.1-build-system.patch
|
||||
eapply "${FILESDIR}"/${PN}-8.18.1-ctime.patch
|
||||
eapply "${FILESDIR}"/${PN}-8.18.1-c23-ctime.patch
|
||||
eapply "${FILESDIR}"/${PN}-8.18.1-c23-sm_strtoll.patch
|
||||
eapply -p0 "${FILESDIR}"/${PN}-delivered_hdr.patch
|
||||
eapply_user
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user