diff options
author | 2010-05-13 01:01:03 +0200 | |
---|---|---|
committer | 2010-05-13 01:01:03 +0200 | |
commit | 6ec76a9860188c0e2de54daf61f5a4ff590ad8ef (patch) | |
tree | edd70b526118253bc6ab17c0dcd069325fa5016f /system/pdksh/patches/102_PLD-pdksh-ulimit-vmem.patch | |
parent | 387f1e8f9c14fc5648eee03d43787806c806fe20 (diff) | |
download | slackbuilds-6ec76a9860188c0e2de54daf61f5a4ff590ad8ef.tar.gz |
system/pdksh: Added to 13.0 repository
Diffstat (limited to 'system/pdksh/patches/102_PLD-pdksh-ulimit-vmem.patch')
-rw-r--r-- | system/pdksh/patches/102_PLD-pdksh-ulimit-vmem.patch | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/system/pdksh/patches/102_PLD-pdksh-ulimit-vmem.patch b/system/pdksh/patches/102_PLD-pdksh-ulimit-vmem.patch new file mode 100644 index 0000000000..483226c7a3 --- /dev/null +++ b/system/pdksh/patches/102_PLD-pdksh-ulimit-vmem.patch @@ -0,0 +1,18 @@ +support for `ulimit -v' +(from PLD) + +Index: pdksh-5.2.14/c_ulimit.c +=================================================================== +--- pdksh-5.2.14.orig/c_ulimit.c 2008-04-15 20:50:48.000000000 +0200 ++++ pdksh-5.2.14/c_ulimit.c 2008-04-15 20:55:52.000000000 +0200 +@@ -38,6 +38,10 @@ + # define KSH_RLIM_INFINITY ((rlim_t) 1 << (sizeof(rlim_t) * 8 - 1) - 1) + #endif /* RLIM_INFINITY */ + ++#if !defined(RLIMIT_VMEM) && defined(RLIMIT_AS) ++# define RLIMIT_VMEM RLIMIT_AS ++#endif ++ + int + c_ulimit(wp) + char **wp; |