c9c8f97e88
- Depend on the latest version of xview-config - Mark as LICENSE sun-openlook-license - Bump pkgrevision
42 lines
1.2 KiB
Text
42 lines
1.2 KiB
Text
$NetBSD: patch-df,v 1.3 2009/12/10 20:35:58 abs Exp $
|
|
|
|
--- lib/libxview/textsw/txt_filter.c.orig 1993-06-29 05:17:39.000000000 +0000
|
|
+++ lib/libxview/textsw/txt_filter.c
|
|
@@ -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>
|
|
|
|
-#ifdef sparc
|
|
+#if defined(sparc) && !(defined(BSD) && (BSD >= 199306))
|
|
#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;
|