From d763a9e2b37e8e89fcf7e1e452d687a7b76be6c3 Mon Sep 17 00:00:00 2001 From: wiz Date: Thu, 16 Aug 2012 13:31:20 +0000 Subject: Fix build on NetBSD-5.99.40. Patch from Peter Stephenson on zsh-workers. --- shells/zsh/patches/patch-Src_prototypes.h | 27 +++++++++++++++++++++++++++ shells/zsh/patches/patch-Src_zsh__system.h | 15 +++++++++++++++ 2 files changed, 42 insertions(+) create mode 100644 shells/zsh/patches/patch-Src_prototypes.h create mode 100644 shells/zsh/patches/patch-Src_zsh__system.h (limited to 'shells/zsh/patches') 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 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 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 -- cgit v1.2.3