x11-misc/xbatt: 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@gentoo.org>
This commit is contained in:
Ionen Wolkens
2022-10-11 04:27:07 -04:00
parent c16c4285e4
commit bee0fed2f6

View File

@@ -3,7 +3,7 @@
EAPI=8
inherit toolchain-funcs
inherit flag-o-matic toolchain-funcs
MY_PV=${PV/_rc/pr}
@@ -36,6 +36,8 @@ PATCHES=(
)
src_configure() {
append-cflags -std=gnu89 # old codebase, incompatible with c2x
CC="$(tc-getBUILD_CC)" LD="$(tc-getLD)" \
IMAKECPP="${IMAKECPP:-${CHOST}-gcc -E}" xmkmf || die
}