summaryrefslogtreecommitdiff
path: root/x11/xview-lib/patches/patch-df
blob: 418674ee2827303f0f387fdad7949e247214ea5f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
$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;