zstd: Fix non-FreeBSD CI libzstd build
authorConrad Meyer <cem@FreeBSD.org>
Sun, 3 Jan 2021 15:39:12 +0000 (07:39 -0800)
committerConrad Meyer <cem@FreeBSD.org>
Sun, 3 Jan 2021 15:42:00 +0000 (07:42 -0800)
commitbcae12b591d9b5f3073c71f7e090dc8611360eb6
tree4638b02b2f5f4f905f5797348f2d721afcc588be
parent86d2671e3e0541b0efc680c5f1ea0d19a7b742eb
zstd: Fix non-FreeBSD CI libzstd build

Fix non-FreeBSD CI build after v1.4.8.  This definition was only used in
zstd(1), which isn't part of non-FreeBSD CI (I guess).  The ifdef was
added in v1.4.5 import.

Upstream does not currently support shared-linked zstd(1), but I have
proposed https://github.com/facebook/zstd/pull/2450 .  If that is
adopted, we can add -DZSTD_PROGRAMS_LINK_SHARED to our libzstd build and
drop some diffs.

Reported by: uqs
sys/contrib/zstd/lib/compress/zstd_compress_internal.h