diff options
author | wiz <wiz@pkgsrc.org> | 2012-08-16 13:31:20 +0000 |
---|---|---|
committer | wiz <wiz@pkgsrc.org> | 2012-08-16 13:31:20 +0000 |
commit | d763a9e2b37e8e89fcf7e1e452d687a7b76be6c3 (patch) | |
tree | 8d7445354f95f082ca34bb352143cdb5b181f0ac /shells/zsh/patches | |
parent | 8e8cdde9b4c1f051eba62ffe0f13668beb36cbb8 (diff) | |
download | pkgsrc-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/zsh/patches')
-rw-r--r-- | shells/zsh/patches/patch-Src_prototypes.h | 27 | ||||
-rw-r--r-- | shells/zsh/patches/patch-Src_zsh__system.h | 15 |
2 files changed, 42 insertions, 0 deletions
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 |