From f558a286ff02ff5373d299332d0e9909fe822a3b Mon Sep 17 00:00:00 2001 From: q66 Date: Thu, 2 Jan 2020 18:05:33 +0100 Subject: [PATCH] trinity: fix build on musl --- srcpkgs/trinity/template | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/srcpkgs/trinity/template b/srcpkgs/trinity/template index ce40fbff1a8..9739055753b 100644 --- a/srcpkgs/trinity/template +++ b/srcpkgs/trinity/template @@ -15,6 +15,10 @@ if [ "$CROSS_BUILD" ]; then export CROSS_COMPILE=${XBPS_TARGET_TRIPLET} fi +if [ "$XBPS_TARGET_LIBC" = "musl" ]; then + CFLAGS+=" -Dloff_t=off_t" +fi + do_install() { vbin trinity vdoc Documentation/HACKING.txt