$NetBSD: patch-ak,v 1.1 1999/03/31 14:25:40 hubertf Exp $ --- lib/libxview/textsw/es_file.c.orig Tue Jun 29 07:17:34 1993 +++ lib/libxview/textsw/es_file.c Wed Mar 31 15:32:31 1999 @@ -88,10 +88,11 @@ #ifdef SVR4 #include #include +#include #else #include +#include #endif /* SVR4 */ -#include #include #include #include @@ -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();