mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-22 17:31:58 -05:00
Ports: Update zsh's patches to use git patches
This commit is contained in:
parent
26ca20a55d
commit
a3ff011fcb
3 changed files with 34 additions and 11 deletions
|
@ -0,0 +1,26 @@
|
||||||
|
From 8d26e03f10054af3f81bd66b3200efeb91f69c7b Mon Sep 17 00:00:00 2001
|
||||||
|
From: Thiago Henrique Hupner <thihup@gmail.com>
|
||||||
|
Date: Sat, 5 Jun 2021 08:31:13 -0300
|
||||||
|
Subject: [PATCH] Let zsh define the rlimit constants
|
||||||
|
|
||||||
|
Serenity doesn't have those anyhow.
|
||||||
|
---
|
||||||
|
Src/zsh_system.h | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/Src/zsh_system.h b/Src/zsh_system.h
|
||||||
|
index 161b073..00286f2 100644
|
||||||
|
--- a/Src/zsh_system.h
|
||||||
|
+++ b/Src/zsh_system.h
|
||||||
|
@@ -556,7 +556,7 @@ int setresgid(gid_t, gid_t, gid_t);
|
||||||
|
|
||||||
|
#ifdef HAVE_SYS_RESOURCE_H
|
||||||
|
# include <sys/resource.h>
|
||||||
|
-# if defined(__hpux) && !defined(RLIMIT_CPU)
|
||||||
|
+# if (defined(__hpux) && !defined(RLIMIT_CPU)) || defined(__serenity__)
|
||||||
|
/* HPUX does have the BSD rlimits in the kernel. Officially they are *
|
||||||
|
* unsupported but quite a few of them like RLIMIT_CORE seem to work. *
|
||||||
|
* All the following are in the <sys/resource.h> but made visible *
|
||||||
|
--
|
||||||
|
2.36.1
|
||||||
|
|
|
@ -1,11 +0,0 @@
|
||||||
--- zsh-zsh-5.8/Src/original-zsh_system.h 2021-06-05 08:17:15.364000000 -0300
|
|
||||||
+++ zsh-zsh-5.8/Src/zsh_system.h 2021-06-04 23:05:07.793197002 -0300
|
|
||||||
@@ -556,7 +556,7 @@
|
|
||||||
|
|
||||||
#ifdef HAVE_SYS_RESOURCE_H
|
|
||||||
# include <sys/resource.h>
|
|
||||||
-# if defined(__hpux) && !defined(RLIMIT_CPU)
|
|
||||||
+# if (defined(__hpux) && !defined(RLIMIT_CPU)) || defined(__serenity__)
|
|
||||||
/* HPUX does have the BSD rlimits in the kernel. Officially they are *
|
|
||||||
* unsupported but quite a few of them like RLIMIT_CORE seem to work. *
|
|
||||||
* All the following are in the <sys/resource.h> but made visible *
|
|
8
Ports/zsh/patches/ReadMe.md
Normal file
8
Ports/zsh/patches/ReadMe.md
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
# Patches for zsh on SerenityOS
|
||||||
|
|
||||||
|
## `0001-Let-zsh-define-the-rlimit-constants.patch`
|
||||||
|
|
||||||
|
Let zsh define the rlimit constants
|
||||||
|
|
||||||
|
Serenity doesn't have those anyhow.
|
||||||
|
|
Loading…
Reference in a new issue