From 517a588a975ab11a691ceb8bdbc82ae083a050ad Mon Sep 17 00:00:00 2001 From: znley Date: Tue, 10 Sep 2024 01:06:46 +0000 Subject: [PATCH] community/freeimage: fix build with gcc14 Source/ZLib/gzread.c:35:15: error: \ implicit declaration of function 'read'; did you mean 'fread'? [-Wimplicit-function-declaration] 35 | ret = read(state->fd, buf + *have, get); | ^~~~ | fread --- community/freeimage/APKBUILD | 1 + 1 file changed, 1 insertion(+) diff --git a/community/freeimage/APKBUILD b/community/freeimage/APKBUILD index 9d63f47946a..51d0f2c04c2 100644 --- a/community/freeimage/APKBUILD +++ b/community/freeimage/APKBUILD @@ -36,6 +36,7 @@ build() { aarch64) export CFLAGS="$CFLAGS -DPNG_ARM_NEON_OPT=0";; ppc64le) export CFLAGS="$CFLAGS -U__ALTIVEC__";; esac + CFLAGS="$CFLAGS -std=gnu89" \ make }