net-dialup/lrzsz: fix configure w/ clang 16

Closes: https://bugs.gentoo.org/898970
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Sam James
2023-03-10 13:53:14 +00:00
parent 115a69798d
commit d7f6f2d938
2 changed files with 16 additions and 3 deletions

View File

@@ -0,0 +1,13 @@
https://bugs.gentoo.org/898970
--- a/configure.in
+++ b/configure.in
@@ -186,7 +186,8 @@ AC_CACHE_VAL(lrzsz_cv_sys_ftime_ok,
#include <sys/types.h>
#include <sys/timeb.h>
#include <stdio.h>
-main ()
+#include <stdlib.h>
+int main (void)
{
struct timeb s, slast;
int c = 0;

View File

@@ -1,9 +1,9 @@
# Copyright 1999-2021 Gentoo Authors
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit autotools flag-o-matic toolchain-funcs
inherit autotools toolchain-funcs
DESCRIPTION="Communication package providing the X, Y, and ZMODEM file transfer protocols"
HOMEPAGE="https://www.ohse.de/uwe/software/lrzsz.html"
@@ -23,6 +23,7 @@ PATCHES=(
"${FILESDIR}"/${P}-automake-1.13.patch
"${FILESDIR}"/${P}-gettext-0.20.patch
"${FILESDIR}"/${P}-AR.patch
"${FILESDIR}"/${P}-configure-clang16.patch
)
DOCS=( AUTHORS COMPATABILITY ChangeLog NEWS \
@@ -43,7 +44,6 @@ src_prepare() {
src_configure() {
tc-export CC
append-flags -Wstrict-prototypes
econf $(use_enable nls)
}