mirror of
https://github.com/RGBCube/serenity
synced 2025-07-30 08:37:34 +00:00
Ports: Update zstd's patches to use git patches
This commit is contained in:
parent
a3ff011fcb
commit
b321d2b563
4 changed files with 63 additions and 18 deletions
|
@ -0,0 +1,31 @@
|
|||
From 71a4bdd121f346d97c398f92a7ff310132de497a Mon Sep 17 00:00:00 2001
|
||||
From: Luke Wilde <lukew@serenityos.org>
|
||||
Date: Sun, 13 Mar 2022 16:45:19 +0000
|
||||
Subject: [PATCH 2/2] Make platform.h understand that serenity is
|
||||
posix-compliant
|
||||
|
||||
Co-Authored-By: Brian Callahan <bcallah@openbsd.org>
|
||||
---
|
||||
programs/platform.h | 6 +++++-
|
||||
1 file changed, 5 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/programs/platform.h b/programs/platform.h
|
||||
index b858e3b..8628c05 100644
|
||||
--- a/programs/platform.h
|
||||
+++ b/programs/platform.h
|
||||
@@ -98,7 +98,11 @@ extern "C" {
|
||||
# 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
|
||||
--
|
||||
2.36.1
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue