commit: 439bfaff96ed150ecf90a18735ed0842c1281393 Author: Z. Liu <zhixu.liu <AT> gmail <DOT> com> AuthorDate: Tue Dec 23 03:03:18 2025 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Wed Dec 24 17:20:47 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=439bfaff
net-dialup/lrzsz: fix build w/ gcc 15 on musl fix error below: > ../lib/getopt.h:104:12: error: conflicting types for 'getopt'; have > 'int(void)' > 104 | extern int getopt (); > | ^~~~~~ > In file included from zglobal.h:217: > /usr/include/unistd.h:127:5: note: previous declaration of 'getopt' with type > 'int(int, char * const*, const char *)' > 127 | int getopt(int, char * const [], const char *); > | ^~~~~~ Signed-off-by: Z. Liu <zhixu.liu <AT> gmail.com> Part-of: https://github.com/gentoo/gentoo/pull/45131 Closes: https://github.com/gentoo/gentoo/pull/45131 Signed-off-by: Sam James <sam <AT> gentoo.org> net-dialup/lrzsz/files/lrzsz-0.12.20-c23.patch | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/net-dialup/lrzsz/files/lrzsz-0.12.20-c23.patch b/net-dialup/lrzsz/files/lrzsz-0.12.20-c23.patch index d3412a2bd7ed..58defbea2b3f 100644 --- a/net-dialup/lrzsz/files/lrzsz-0.12.20-c23.patch +++ b/net-dialup/lrzsz/files/lrzsz-0.12.20-c23.patch @@ -96,3 +96,14 @@ https://bugs.gentoo.org/943880 #endif #ifndef HAVE_ERRNO_DECLARATION +--- a/lib/getopt.h ++++ b/lib/getopt.h +@@ -101,7 +101,7 @@ struct option + errors, only prototype getopt for the GNU C library. */ + extern int getopt (int argc, char *const *argv, const char *shortopts); + #else /* not __GNU_LIBRARY__ */ +-extern int getopt (); ++extern int getopt (int argc, char *const *argv, const char *shortopts); + #endif /* __GNU_LIBRARY__ */ + extern int getopt_long (int argc, char *const *argv, const char *shortopts, + const struct option *longopts, int *longind);
