From: W. Felix Handte Date: Mon, 11 Mar 2024 19:20:06 +0000 (-0400) Subject: Stop Hardcoding the POSIX Version on BSDs X-Git-Tag: v1.5.6^2~34^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f99a450ca4d5fdb25d0d9bc5ae4c5d4787fbcb87;p=thirdparty%2Fzstd.git Stop Hardcoding the POSIX Version on BSDs BSDs should all have a `unistd.h` header. --- diff --git a/programs/platform.h b/programs/platform.h index bbe0965ae..4d2b9490e 100644 --- a/programs/platform.h +++ b/programs/platform.h @@ -74,8 +74,7 @@ extern "C" { ***************************************************************/ #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 */ +# if (defined(__APPLE__) && defined(__MACH__)) || defined(__SVR4) || defined(_AIX) || defined(__hpux) /* POSIX.1-2001 (SUSv3) conformant */ /* 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