net-dialup/freeradius-client: fix configure w/ clang 16

Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Sam James
2023-01-10 10:48:54 +00:00
parent 0bedba8bba
commit b9832472df
2 changed files with 19 additions and 1 deletions

View File

@@ -0,0 +1,17 @@
https://src.fedoraproject.org/rpms/freeradius-client/c/12ee8b567ce2a1b6637ad01e5806a15eeef410cc?branch=rawhide
Add return type to main for autoconf check for C99 compliance.
https://github.com/FreeRADIUS/freeradius-client/issues/113
--- a/configure.in
+++ b/configure.in
@@ -212,7 +212,7 @@ then
AC_TRY_RUN([
#include <sys/utsname.h>
- main(int argc, char **argv)
+ int main(int argc, char **argv)
{
struct utsname uts;
uts.domainname[0] = '\0';

View File

@@ -1,4 +1,4 @@
# Copyright 1999-2021 Gentoo Authors
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
@@ -28,6 +28,7 @@ DOCS=(
PATCHES=(
"${FILESDIR}/${PN}-1.1.7-ar-configure.in.patch"
"${FILESDIR}/${PN}-1.1.7-configure-clang16.patch"
)
src_prepare() {