$NetBSD: patch-de,v 1.1 2001/12/20 09:20:06 tron Exp $

--- lib/libxview/textsw/es_file.c.orig	Tue Jun 29 07:17:34 1993
+++ lib/libxview/textsw/es_file.c	Thu Dec 20 10:09:45 2001
@@ -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>
@@ -110,8 +111,13 @@
 
 
 extern int      errno, sys_nerr;
+#if (defined(BSD) && (BSD >= 199306))
+extern const char *const sys_err_list[];
+extern off_t	lseek();
+#else
 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();
