diff options
Diffstat (limited to 'x11/xview-lib/patches/patch-df')
-rw-r--r-- | x11/xview-lib/patches/patch-df | 33 |
1 files changed, 31 insertions, 2 deletions
diff --git a/x11/xview-lib/patches/patch-df b/x11/xview-lib/patches/patch-df index c43b68a4998..142770663de 100644 --- a/x11/xview-lib/patches/patch-df +++ b/x11/xview-lib/patches/patch-df @@ -1,8 +1,12 @@ -$NetBSD: patch-df,v 1.1 2001/12/20 09:20:06 tron Exp $ +$NetBSD: patch-df,v 1.2 2006/01/05 18:25:57 joerg Exp $ --- lib/libxview/textsw/txt_filter.c.orig Tue Jun 29 07:17:39 1993 +++ lib/libxview/textsw/txt_filter.c Thu Dec 20 10:09:58 2001 -@@ -31,7 +31,7 @@ +@@ -28,10 +28,11 @@ static char sccsid[] = "@(#)txt_filt + #include <xview_private/txt_18impl.h> + #include <xview/notify.h> + #include <fcntl.h> ++#include <limits.h> #include <signal.h> #include <string.h> @@ -11,3 +15,28 @@ $NetBSD: patch-df,v 1.1 2001/12/20 09:20:06 tron Exp $ #ifdef SVR4 #include <unistd.h> #else +@@ -66,8 +67,8 @@ extern int dtablesize_cache; + (dtablesize_cache?dtablesize_cache:(dtablesize_cache=getdtablesize())) + #endif /* SVR4 */ + +- +-extern int errno; ++static int talk_to_filter(); ++static int start_filter(); + + Xv_public char *xv_getlogindir(); + Pkg_private Es_index textsw_do_input(); +@@ -934,7 +935,12 @@ Pkg_private int + textsw_parse_rc(textsw) + Textsw_folio textsw; + { +- char *base_name = ".textswrc", file_name[MAXNAMLEN], *login_dir; ++ char *base_name = ".textswrc", *login_dir; ++#ifdef NAME_MAX ++ char file_name[NAME_MAX]; ++#else ++ char file_name[MAXNAMLEN]; ++#endif + STREAM *rc_stream = NULL; + STREAM *rc_wo_comments_stream = NULL; + Key_map_handle current_key; |