summaryrefslogtreecommitdiff
path: root/shells/tcsh
diff options
context:
space:
mode:
authoragc <agc>1999-07-08 12:48:42 +0000
committeragc <agc>1999-07-08 12:48:42 +0000
commit18e443b66f6cba6108b7746d1ea84c963515c93f (patch)
tree6dbac44e0ccdc65a7e9ad88d1743e9cda181ef0c /shells/tcsh
parente4df0af050c555a278ba8b90320fca2845df4630 (diff)
downloadpkgsrc-18e443b66f6cba6108b7746d1ea84c963515c93f.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/tcsh')
-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 */