diff --git a/sys/contrib/zstd/programs/platform.h b/sys/contrib/zstd/programs/platform.h --- a/sys/contrib/zstd/programs/platform.h +++ b/sys/contrib/zstd/programs/platform.h @@ -75,10 +75,11 @@ #ifndef PLATFORM_POSIX_VERSION # if (defined(__APPLE__) && defined(__MACH__)) || defined(__SVR4) || defined(_AIX) || defined(__hpux) /* POSIX.1-2001 (SUSv3) conformant */ \ - || defined(__DragonFly__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) /* BSD distros */ /* exception rule : force posix version to 200112L, * note: it's better to use unistd.h's _POSIX_VERSION whenever possible */ # define PLATFORM_POSIX_VERSION 200112L +# elif defined(__FreeBSD__) +# define PLATFORM_POSIX_VERSION 200809L /* try to determine posix version through official unistd.h's _POSIX_VERSION (http://pubs.opengroup.org/onlinepubs/7908799/xsh/unistd.h.html). * note : there is no simple way to know in advance if is present or not on target system,