ladybird/Ports/zsh/patches/0001-Let-zsh-define-the-rlimit-constants.patch

23 lines
900 B
Diff

From 0000000000000000000000000000000000000000 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 *