openbsd-ports/x11/xview/config/patches/p-libxview-textsw-es_file_c

17 lines
541 B
Plaintext

--- lib/libxview/textsw/es_file.c.orig 1993-06-29 07:17:34.000000000 +0200
+++ lib/libxview/textsw/es_file.c 2003-12-30 01:31:13.000000000 +0100
@@ -110,8 +110,13 @@ static char sccsid[] = "@(#)es_file.
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();