summaryrefslogtreecommitdiff
path: root/x11/xview-lib/patches/patch-de
blob: 63ed0316763d5ed42e39d5f78d1522b9a5ee546f (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
$NetBSD: patch-de,v 1.2 2004/09/30 20:38:28 kristerw Exp $

--- lib/libxview/textsw/es_file.c.orig	1993-06-29 07:17:34.000000000 +0200
+++ lib/libxview/textsw/es_file.c	2004-09-30 22:12:38.000000000 +0200
@@ -88,10 +88,11 @@
 #ifdef SVR4
 #include <stdlib.h>
 #include <dirent.h>
+#include <sys/errno.h>
 #else
 #include <sys/dir.h>
+#include <errno.h>
 #endif /* SVR4 */
-#include <sys/errno.h>
 #include <sys/param.h>
 #include <sys/types.h>
 #include <sys/stat.h>
@@ -109,9 +110,14 @@
 #include <xview_private/txt_18impl.h>
 
 
+#if (defined(BSD) && (BSD >= 199306))
+extern const char *const sys_err_list[];
+extern off_t	lseek();
+#else
 extern int      errno, sys_nerr;
 extern char    *sys_errlist[];
 extern long     lseek();
+#endif
 
 static void update_read_buf();  /* update the read buf if overlaps write buf */
 static Es_status es_file_commit();