commit:     7a26867943ada25798484ce203a373605738a815
Author:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
AuthorDate: Tue Oct 11 08:28:02 2022 +0000
Commit:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
CommitDate: Tue Oct 11 08:56:04 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7a268679

x11-plugins/asmem: 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>

 x11-plugins/asmem/asmem-1.12-r2.ebuild | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/x11-plugins/asmem/asmem-1.12-r2.ebuild 
b/x11-plugins/asmem/asmem-1.12-r2.ebuild
index 02804f6c2ddb..da11dba67c3f 100644
--- a/x11-plugins/asmem/asmem-1.12-r2.ebuild
+++ b/x11-plugins/asmem/asmem-1.12-r2.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=8
 
-inherit toolchain-funcs
+inherit flag-o-matic toolchain-funcs
 
 DESCRIPTION="Monitor the utilization level of memory, cache and swap space"
 HOMEPAGE="http://www.tigr.net/";
@@ -34,6 +34,7 @@ PATCHES=(
 
 src_configure() {
        tc-export CC # old autoconf
+       append-cflags -std=gnu89 # old codebase, incompatible with c2x
 
        econf $(use_enable jpeg)
 }

Reply via email to