summaryrefslogtreecommitdiff
path: root/shells
diff options
context:
space:
mode:
authoragc <agc@pkgsrc.org>1999-07-08 12:48:42 +0000
committeragc <agc@pkgsrc.org>1999-07-08 12:48:42 +0000
commit1985bb5824f42e1f8206a43d26cac94430975e76 (patch)
tree6dbac44e0ccdc65a7e9ad88d1743e9cda181ef0c /shells
parent7aef49b3b82596ae24857492d0fb24502ab5a2b5 (diff)
downloadpkgsrc-1985bb5824f42e1f8206a43d26cac94430975e76.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 */