blob: e92f214e665969a1303ee76d7e74a6816d24eaa0 (
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
|
$NetBSD: patch-ah,v 1.3 2001/12/20 09:19:55 tron Exp $
--- lib/libxview/base/xv_error.c.orig Tue Jun 29 07:14:42 1993
+++ lib/libxview/base/xv_error.c Thu Dec 20 10:10:01 2001
@@ -11,15 +11,20 @@
*/
#include <stdio.h>
+#include <sys/param.h>
#include <xview/pkg_public.h>
#include <X11/Xlib.h>
#include <xview_private/i18n_impl.h>
#include <xview_private/portable.h>
/* Unix system error variables */
+#if (defined(BSD) && (BSD >= 199306))
+#include <errno.h>
+#else
extern int sys_nerr;
-extern char *sys_errlist[];
extern int errno;
+extern char *sys_errlist[];
+#endif
Xv_private_data char *xv_app_name;
Xv_private int (*xv_error_proc) ();
|