1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-28 21:47:45 +00:00

Ports: Add ZSH port

This commit is contained in:
Thiago Henrique Hupner 2021-06-05 08:31:13 -03:00 committed by Linus Groh
parent 4850cf9069
commit d0bed24ca1
4 changed files with 33 additions and 0 deletions

View file

@ -0,0 +1,11 @@
--- zsh-zsh-5.8/original-config.sub 2021-06-04 22:59:03.710400955 -0300
+++ zsh-zsh-5.8/config.sub 2021-06-04 23:01:41.573688625 -0300
@@ -1516,6 +1516,8 @@
;;
*-eabi)
;;
+ serenity*)
+ ;;
*)
echo Invalid configuration \`"$1"\': system \`"$os"\' not recognized 1>&2
exit 1

View file

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