logo

oasis

Own branch of Oasis Linux (upstream: <https://git.sr.ht/~mcf/oasis/>) git clone https://anongit.hacktivis.me/git/oasis.git
commit: bf4acc611a620d9579969a90e4187b759ddb8a99
parent 4091567d664f565a91677016780874cd3aad24b5
Author: Michael Forney <mforney@mforney.org>
Date:   Tue, 13 Apr 2021 15:57:27 -0700

file: Build strlcpy into host magic compiler

If the host system is glibc-based, we need the fallback strlcpy
implementation.

Diffstat:

Mpkg/file/gen.lua2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pkg/file/gen.lua b/pkg/file/gen.lua @@ -49,7 +49,7 @@ sub('host.ninja', function() ([[-D 'VERSION="%s"']]):format(version), } set('outdir', '$outdir/host') - exe('magic', 'src/(magic.c apprentice.c encoding.c print.c funcs.c cdf_time.c)') + exe('magic', 'src/(magic.c apprentice.c encoding.c print.c funcs.c cdf_time.c strlcpy.c)') end) rule('magic', 'cd $outdir && ./host/magic magic')