1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 09:47:35 +00:00

Ports: Add zstd port

This commit is contained in:
Brian Callahan 2020-03-14 15:35:02 -04:00 committed by Andreas Kling
parent a521d2f950
commit 149a9ba5d7
3 changed files with 64 additions and 0 deletions

View file

@ -0,0 +1,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