summaryrefslogtreecommitdiff
path: root/x11/xview-lib
diff options
context:
space:
mode:
authorhubertf <hubertf@pkgsrc.org>1999-03-31 14:25:40 +0000
committerhubertf <hubertf@pkgsrc.org>1999-03-31 14:25:40 +0000
commit08689d8b1c54f746cfc62ea64f4c458a07f74291 (patch)
treedfe0c7d00dd1a83fbec7491d0f9072b823bc2b0c /x11/xview-lib
parent4364e05957d28cca1a9c8b946db4a32b6a49347a (diff)
downloadpkgsrc-08689d8b1c54f746cfc62ea64f4c458a07f74291.tar.gz
Split out of patch-ad, #include <errno.h> if not SVR4
Diffstat (limited to 'x11/xview-lib')
-rw-r--r--x11/xview-lib/patches/patch-ak31
1 files changed, 31 insertions, 0 deletions
diff --git a/x11/xview-lib/patches/patch-ak b/x11/xview-lib/patches/patch-ak
new file mode 100644
index 00000000000..c994366ace7
--- /dev/null
+++ b/x11/xview-lib/patches/patch-ak
@@ -0,0 +1,31 @@
+$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 <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();