summaryrefslogtreecommitdiff
path: root/shells
diff options
context:
space:
mode:
authoragc <agc>1999-07-08 12:48:42 +0000
committeragc <agc>1999-07-08 12:48:42 +0000
commit643b1b41633dc515a6799064ef721b4e0c01bfea (patch)
tree6dbac44e0ccdc65a7e9ad88d1743e9cda181ef0c /shells
parenta5c0c5587843f01f465adb883cd1ff42219b9d1b (diff)
downloadpkgsrc-643b1b41633dc515a6799064ef721b4e0c01bfea.tar.gz
Solaris 2.6 redefines rlimit to rlimit64, to catch the rlimit() call
when function names are re-defined. Unfortunately, it also does that after defining "struct rlimit", and so we lose because it can't find the structure. So we get to redefine it ourselves before <sys/resource.h> is included. Thanks, guys.
Diffstat (limited to 'shells')
-rw-r--r--shells/tcsh/patches/patch-ah18
1 files changed, 18 insertions, 0 deletions
diff --git a/shells/tcsh/patches/patch-ah b/shells/tcsh/patches/patch-ah
new file mode 100644
index 00000000000..59bd38e2f8c
--- /dev/null
+++ b/shells/tcsh/patches/patch-ah
@@ -0,0 +1,18 @@
+$NetBSD: patch-ah,v 1.3 1999/07/08 12:48:42 agc Exp $
+
+Solaris redefines rlimit to rlimit64, to catch the rlimit() call when
+function names are re-defined. Unfortunately, it also does that after
+defining "struct rlimit", and so we lose because it can't find the
+structure. So we get to redefine it ourselves before <sys/resource.h>
+is included. Thanks, guys.
+
+--- sh.h 1998/09/18 16:09:13 3.85
++++ sh.h 1999/03/08 13:14:06
+@@ -224,6 +224,7 @@
+ # include <sys/sysinfo.h>
+ # else
+ # define sysrusage rusage
++# define rlimit rlimit64
+ # include <sys/resource.h>
+ # endif /* convex */
+ # endif /* SYSVREL>3 */