pkgsrc/x11/xview-lib/patches/patch-co
hauke cbccace970 Unbreak package by culling extern declarations doubling as function
prototypes. Since NetBSD headers have moved to #including what they
reference, <string.h> is everywhere, which turns the externs from
annoying into harmful.
2017-12-12 20:42:41 +00:00

22 lines
652 B
Text

$NetBSD: patch-co,v 1.4 2017/12/12 20:42:41 hauke Exp $
--- lib/libxview/ttysw/tty_mapkey.c.orig 1993-06-29 05:17:20.000000000 +0000
+++ lib/libxview/ttysw/tty_mapkey.c
@@ -34,8 +34,6 @@ static char sccsid[] = "@(#)tty_mapk
extern Notify_error win_post_event();
extern char *getenv();
-extern char *strcpy();
-extern char *strcat();
/* static routines */
@@ -500,7 +498,7 @@ ttysw_remove_caps(label, label_ptr)
* have more time.
*/
-#ifdef i386
+#if defined(i386) && !defined (__FreeBSD__) && !defined(__NetBSD__) && !defined(__DragonFly__)
static void
ttysw_arrow_keys_to_string(xv_id, str)
unsigned xv_id;