summaryrefslogtreecommitdiff
path: root/shells
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2012-08-16 13:31:20 +0000
committerwiz <wiz@pkgsrc.org>2012-08-16 13:31:20 +0000
commitd763a9e2b37e8e89fcf7e1e452d687a7b76be6c3 (patch)
tree8d7445354f95f082ca34bb352143cdb5b181f0ac /shells
parent8e8cdde9b4c1f051eba62ffe0f13668beb36cbb8 (diff)
downloadpkgsrc-d763a9e2b37e8e89fcf7e1e452d687a7b76be6c3.tar.gz
Fix build on NetBSD-5.99.40.
Patch from Peter Stephenson <Peter.Stephenson@csr.com> on zsh-workers.
Diffstat (limited to 'shells')
-rw-r--r--shells/zsh/distinfo4
-rw-r--r--shells/zsh/patches/patch-Src_prototypes.h27
-rw-r--r--shells/zsh/patches/patch-Src_zsh__system.h15
3 files changed, 45 insertions, 1 deletions
diff --git a/shells/zsh/distinfo b/shells/zsh/distinfo
index 9a26835ea19..01468aa331d 100644
--- a/shells/zsh/distinfo
+++ b/shells/zsh/distinfo
@@ -1,8 +1,10 @@
-$NetBSD: distinfo,v 1.34 2012/07/22 10:03:40 ryoon Exp $
+$NetBSD: distinfo,v 1.35 2012/08/16 13:31:20 wiz Exp $
SHA1 (zsh-5.0.0.tar.bz2) = 692669243433c55384a54b397a1cc926e582e9f2
RMD160 (zsh-5.0.0.tar.bz2) = d2aff295e245dd5e805215c6dcca1e76af8b9725
Size (zsh-5.0.0.tar.bz2) = 3014362 bytes
+SHA1 (patch-Src_prototypes.h) = 14a766668bda382b3fc736ef4fccf49670e1be9c
+SHA1 (patch-Src_zsh__system.h) = 1d5827a571b897ae139cb7b0c31d3e5a429aa190
SHA1 (patch-ab) = 577a98385f258cbc47ff49d0b4bc6cc9134e864a
SHA1 (patch-ac) = 23c086e61120f9c533e4a3a53e44c5b6b48b1352
SHA1 (patch-af) = cedd6fb7369b0fc9debbaab29aaf40c25c587123
diff --git a/shells/zsh/patches/patch-Src_prototypes.h b/shells/zsh/patches/patch-Src_prototypes.h
new file mode 100644
index 00000000000..f7cab206c74
--- /dev/null
+++ b/shells/zsh/patches/patch-Src_prototypes.h
@@ -0,0 +1,27 @@
+$NetBSD: patch-Src_prototypes.h,v 1.1 2012/08/16 13:31:20 wiz Exp $
+
+Fix build on NetBSD-5.99.40.
+Patch from Peter Stephenson <Peter.Stephenson@csr.com> on zsh-workers.
+
+--- Src/prototypes.h.orig 2011-05-03 18:38:21.000000000 +0000
++++ Src/prototypes.h
+@@ -49,11 +49,18 @@ extern int tgetent _((char *bp, TC_CONST
+ extern int tgetnum _((char *id));
+ extern int tgetflag _((char *id));
+ extern char *tgetstr _((char *id, char **area));
+-extern char *tgoto _((TC_CONST char *cm, int destcol, int destline));
+ extern int tputs _((TC_CONST char *cp, int affcnt, int (*outc) (int)));
+ #undef TC_CONST
+ #endif
+
++/*
++ * Some systems that do have termcap headers nonetheless don't
++ * declare tgoto, so we detect if that is missing separately.
++ */
++#ifdef TGOTO_PROTO_MISSING
++char *tgoto(const char *cap, int col, int row);
++#endif
++
+ /* MISSING PROTOTYPES FOR VARIOUS OPERATING SYSTEMS */
+
+ #if defined(__hpux) && defined(_HPUX_SOURCE) && !defined(_XPG4_EXTENDED)
diff --git a/shells/zsh/patches/patch-Src_zsh__system.h b/shells/zsh/patches/patch-Src_zsh__system.h
new file mode 100644
index 00000000000..315ad4c3e84
--- /dev/null
+++ b/shells/zsh/patches/patch-Src_zsh__system.h
@@ -0,0 +1,15 @@
+$NetBSD: patch-Src_zsh__system.h,v 1.1 2012/08/16 13:31:21 wiz Exp $
+
+Fix build on NetBSD-5.99.40.
+Patch from Peter Stephenson <Peter.Stephenson@csr.com> on zsh-workers.
+
+--- Src/zsh_system.h.orig 2012-06-21 18:36:09.000000000 +0000
++++ Src/zsh_system.h
+@@ -874,7 +874,3 @@ extern short ospeed;
+ # endif
+ # endif
+ #endif
+-
+-#ifdef TGOTO_PROTO_MISSING
+-char *tgoto(const char *cap, int col, int row);
+-#endif