commit:     fa855c43dc629fede17b882ed1a293089ff40ba4
Author:     Viorel Munteanu <ceamac <AT> gentoo <DOT> org>
AuthorDate: Sat Dec 14 18:33:16 2024 +0000
Commit:     Viorel Munteanu <ceamac <AT> gentoo <DOT> org>
CommitDate: Sat Dec 14 18:33:56 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fa855c43

net-dialup/lrzsz: add the missing patch

Closes: https://bugs.gentoo.org/946476
Signed-off-by: Viorel Munteanu <ceamac <AT> gentoo.org>

 net-dialup/lrzsz/files/lrzsz-0.12.20-c23.patch | 98 ++++++++++++++++++++++++++
 1 file changed, 98 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
new file mode 100644
index 000000000000..d3412a2bd7ed
--- /dev/null
+++ b/net-dialup/lrzsz/files/lrzsz-0.12.20-c23.patch
@@ -0,0 +1,98 @@
+https://bugs.gentoo.org/943880
+
+--- a/lib/error.c
++++ b/lib/error.c
+@@ -73,7 +73,7 @@ extern char *program_name;
+ 
+ # if HAVE_STRERROR
+ #  ifndef strerror            /* On some systems, strerror is a macro */
+-char *strerror ();
++char *strerror (int);
+ #  endif
+ # else
+ static char *
+--- a/lib/long-options.c
++++ b/lib/long-options.c
+@@ -36,11 +36,11 @@ static struct option const long_options[] =
+ /* Process long options --help and --version, but only if argc == 2.
+    Be careful not to gobble up `--'.  */
+ void
+-parse_long_options (argc, argv,version, usage)
+-     int argc;
+-     char **argv;
+-     void (*version)();
+-     void (*usage)();
++parse_long_options (
++     int argc,
++     char **argv,
++     void (*version)(void),
++     void (*usage)(int))
+ {
+   int c;
+   int saved_opterr;
+@@ -61,7 +61,7 @@ parse_long_options (argc, argv,version, usage)
+         (*usage) (0);
+ 
+       case 'v':
+-        (*version) (0);
++        (*version) ();
+         /* printf ("%s (%s) %s\n", command_name, package, version_string); */
+         exit (0);
+ 
+--- a/lib/xstrtol.c
++++ b/lib/xstrtol.c
+@@ -65,17 +65,17 @@ extern int errno;
+       }                                                               \
+       while (0)
+ 
+-__unsigned long int __strtol ();
++__unsigned long int __strtol (const char*, char**, int);
+ 
+ /* FIXME: comment.  */
+ 
+ strtol_error
+-__xstrtol (s, ptr, base, val, valid_suffixes)
+-     const char *s;
+-     char **ptr;
+-     int base;
+-     __unsigned long int *val;
+-     const char *valid_suffixes;
++__xstrtol (
++     const char *s,
++     char **ptr,
++     int base,
++     __unsigned long int *val,
++     const char *valid_suffixes)
+ {
+   char *t_ptr;
+   char **p;
+--- a/src/lrz.c
++++ b/src/lrz.c
+@@ -42,9 +42,9 @@
+ #include "error.h"
+ 
+ #ifndef STRICT_PROTOTYPES
+-extern time_t time();
+-extern char *strerror();
+-extern char *strstr();
++extern time_t time(time_t*);
++extern char *strerror(int);
++extern char *strstr(const char* , const char*);
+ #endif
+ 
+ #ifndef HAVE_ERRNO_DECLARATION
+--- a/src/lsz.c
++++ b/src/lsz.c
+@@ -51,9 +51,9 @@ void *mm_addr=NULL;
+ #include "error.h"
+ 
+ #ifndef STRICT_PROTOTYPES
+-extern time_t time();
+-extern char *strerror();
+-extern char *strstr();
++extern time_t time(time_t*);
++extern char *strerror(int);
++extern char *strstr(const char*, const char*);
+ #endif
+ 
+ #ifndef HAVE_ERRNO_DECLARATION

Reply via email to