mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
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:
13
net-dialup/lrzsz/files/lrzsz-0.12.20-configure-clang16.patch
Normal file
13
net-dialup/lrzsz/files/lrzsz-0.12.20-configure-clang16.patch
Normal 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;
|
||||
@@ -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)
|
||||
}
|
||||
Reference in New Issue
Block a user