pkgsrc/x11/xview-lib/patches/patch-cz
joerg 2bbbd70847 First try on fixing xview. Fix errno. Add DragonFly support.
Use NAME_MAX when available. Don't try to fake a FILE on DragonFly.
The implementation of textsw_scanf can be improved, it is very
defensively and slow ATM, the snprintf usage should be portable.
Fix a number of prototype mismatches, e.g. variable argument functions
can conflict with K&R prototypes.

Bump revision since the package "compiled" before, e.g. build
errors where ignored.
2006-01-05 18:25:56 +00:00

22 lines
645 B
Text

$NetBSD: patch-cz,v 1.2 2006/01/05 18:25:57 joerg Exp $
--- lib/libxview/textsw/txt_input.c.orig Tue Jun 29 07:17:42 1993
+++ lib/libxview/textsw/txt_input.c Thu Dec 20 10:09:17 2001
@@ -40,8 +40,6 @@ static char sccsid[] = "@(#)txt_inpu
#include <stdlib.h>
#endif /* SVR4 */
-extern int errno;
-
Pkg_private Xv_Cursor move_cursor, dup_cursor; /* laf */
Pkg_private void termsw_menu_set();
Pkg_private Key_map_handle textsw_do_filter();
@@ -57,6 +55,8 @@ static void textsw_do_undo();
Pkg_private void textsw_implicit_commit_doit();
#endif
+static int textsw_do_newline();
+
#define SPACE_CHAR 0x20
Pkg_private int