app-i18n/mozc: fix clang-21 (external/zlib+)

errors from missing functions (unistd.h) : lseek, read, close, write ...
defined HAVE_UNISTD_H=1 to fix it

Signed-off-by: Nicolas PARLANT <nicolas.parlant@parhuet.fr>
Part-of: https://github.com/gentoo/gentoo/pull/44605
Closes: https://github.com/gentoo/gentoo/pull/44605
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Nicolas PARLANT 2025-11-12 17:14:46 +01:00 committed by Sam James
parent 2efce67ac8
commit c7500d602d
No known key found for this signature in database
GPG Key ID: 738409F520DF9190

View File

@ -4,7 +4,7 @@
EAPI=8
PYTHON_COMPAT=( python3_{11..14} )
inherit desktop dot-a edo elisp-common multiprocessing python-any-r1 savedconfig toolchain-funcs xdg
inherit desktop dot-a edo elisp-common flag-o-matic multiprocessing python-any-r1 savedconfig toolchain-funcs xdg
# USE_BAZEL_VERSION in .bazeliskrc
BAZEL_VER="8.1.1"
@ -235,6 +235,9 @@ src_configure() {
# https://bazel.build/reference/be/make-variables
tc-export CC AR
# fix external/zlib+ w/ clang-21
append-cppflags -DHAVE_UNISTD_H=1
MYEBAZELARGS=(
--compilation_mode="$(usex debug dbg opt)"
--config="oss_linux"
@ -268,6 +271,11 @@ src_configure() {
use fcitx5 && SKIP_TESTS+=( -unix/fcitx/... )
fi
local cppflags
for cppflags in ${CPPFLAGS}; do
MYEBAZELARGS+=( --copt="${cppflags}" )
done
local cflags
for cflags in ${CFLAGS}; do
MYEBAZELARGS+=( --conlyopt="${cflags}" )