commit:     208a6db72d0634677effcc47ae4d96f0deee8991
Author:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
AuthorDate: Tue Oct 11 08:25:12 2022 +0000
Commit:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
CommitDate: Tue Oct 11 08:56:02 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=208a6db7

net-misc/rinetd: pass -std=gnu89

Does not build with `clang -std=c2x`, early workaround for
when this will become a default.

(not actively hunting for these, merely revisiting packages
previously looked at for clang16 even if not an issue "yet").

Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>

 net-misc/rinetd/rinetd-0.62-r3.ebuild | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/net-misc/rinetd/rinetd-0.62-r3.ebuild 
b/net-misc/rinetd/rinetd-0.62-r3.ebuild
index b6df56b6242f..44266b98726e 100644
--- a/net-misc/rinetd/rinetd-0.62-r3.ebuild
+++ b/net-misc/rinetd/rinetd-0.62-r3.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=8
 
-inherit toolchain-funcs
+inherit flag-o-matic toolchain-funcs
 
 DESCRIPTION="redirects TCP connections from one IP address and port to another"
 HOMEPAGE="https://wiki.gentoo.org/wiki/No_homepage";
@@ -26,6 +26,7 @@ src_prepare() {
 
 src_compile() {
        tc-export CC
+       append-cflags -std=gnu89 # old codebase, incompatible with c2x
 
        emake CFLAGS="${CFLAGS} -DLINUX"
 }

Reply via email to