summaryrefslogtreecommitdiff
path: root/Ports/zstd/patches/posix-compliance.patch
blob: f97a59c5948ed95171fef4c9fbecf622f7ecaa04 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--- zstd-1.4.4/programs/platform.h.orig	Sat Mar 14 15:22:06 2020
+++ zstd-1.4.4/programs/platform.h	Sat Mar 14 15:22:41 2020
@@ -97,7 +97,11 @@
 #    endif
 #    include <unistd.h>  /* declares _POSIX_VERSION */
 #    if defined(_POSIX_VERSION)  /* POSIX compliant */
-#      define PLATFORM_POSIX_VERSION _POSIX_VERSION
+#      if defined(__serenity__)
+#        define PLATFORM_POSIX_VERSION 1
+#      else
+#        define PLATFORM_POSIX_VERSION _POSIX_VERSION
+#      endif
 #    else
 #      define PLATFORM_POSIX_VERSION 1
 #    endif