net-dialup/lrzsz: Sync with Gentoo

It's from Gentoo commit df3ec50e047b2551a788c10170f61f4ecacf042b.

Signed-off-by: Flatcar Buildbot <buildbot@flatcar-linux.org>
This commit is contained in:
Flatcar Buildbot 2026-03-02 07:28:16 +00:00 committed by Krzesimir Nowak
parent d437ba85f4
commit 31aa5400be
2 changed files with 5 additions and 32 deletions

View File

@ -66,36 +66,6 @@ https://bugs.gentoo.org/943880
{
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
--- a/lib/getopt.h
+++ b/lib/getopt.h
@@ -101,7 +101,7 @@ struct option

View File

@ -1,9 +1,9 @@
# Copyright 1999-2025 Gentoo Authors
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit autotools toolchain-funcs
inherit autotools flag-o-matic toolchain-funcs
DESCRIPTION="Communication package providing the X, Y, and ZMODEM file transfer protocols"
HOMEPAGE="https://www.ohse.de/uwe/software/lrzsz.html"
@ -56,6 +56,9 @@ src_prepare() {
src_configure() {
tc-export CC
# bug #943880, bug #969297
append-cppflags -DSTRICT_PROTOTYPES
econf $(use_enable nls)
}