]> git.ipfire.org Git - thirdparty/zstd.git/commit
Check for build environment instead of just _GNU_SOURCE 4463/head
authorBrad Smith <brad@comstyle.com>
Tue, 19 Aug 2025 13:23:38 +0000 (09:23 -0400)
committerBrad Smith <brad@comstyle.com>
Wed, 20 Aug 2025 00:06:24 +0000 (20:06 -0400)
commit0d1f8de9addeb2fcb53f1a6a68ef4ac505253c0e
treeb5b42dd88cb0cc2a8370aa0d1141381b5c113c94
parentcfeb29e39713dadcb5f6735a129289ac06b3de73
Check for build environment instead of just _GNU_SOURCE

Fixes the build on OpenBSD and NetBSD. It is too easy for _GNU_SOURCE
to be defined even on non-Linux systems. Found via py-zstandard with
the embedded copy of zstandard and Python defines _GNU_SOURCE.

Also simplify the Linux checking, there is no need to check the rest
of the symbol names.
lib/dictBuilder/cover.c