]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
Stop Hardcoding the POSIX Version on BSDs 3952/head
authorW. Felix Handte <w@felixhandte.com>
Mon, 11 Mar 2024 19:20:06 +0000 (15:20 -0400)
committerW. Felix Handte <w@felixhandte.com>
Mon, 11 Mar 2024 21:25:51 +0000 (17:25 -0400)
BSDs should all have a `unistd.h` header.

programs/platform.h

index bbe0965ae766063e6f8aec79c05bd6bcb952cf43..4d2b9490e6df502d4d809f443159cec62b642dd2 100644 (file)
@@ -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