36 lines
857 B
Text
36 lines
857 B
Text
$NetBSD: patch-af,v 1.4 2004/08/22 08:02:30 minskim Exp $
|
|
|
|
--- xv.h.orig Tue Jan 4 17:12:42 2000
|
|
+++ xv.h Tue Jan 4 17:13:38 2000
|
|
@@ -107,9 +107,7 @@
|
|
#endif
|
|
|
|
|
|
-#if defined(__FreeBSD__)
|
|
-# include <sys/param.h>
|
|
-#endif
|
|
+#include <sys/param.h>
|
|
|
|
|
|
/* include files */
|
|
@@ -128,7 +126,7 @@
|
|
#ifndef VMS
|
|
# include <errno.h>
|
|
extern int errno; /* SHOULD be in errno.h, but often isn't */
|
|
-# if !(defined(BSD) && (BSD >= 199103))
|
|
+# if !(defined(BSD) && (BSD >= 199103)) && !defined(__linux__)
|
|
extern char *sys_errlist[]; /* this too... */
|
|
# endif
|
|
#endif
|
|
@@ -134,7 +134,11 @@
|
|
|
|
/* not everyone has the strerror() function, or so I'm told */
|
|
#ifndef VMS
|
|
+#if defined(__INTERIX)
|
|
+# define ERRSTR(x) strerror(x)
|
|
+#else
|
|
# define ERRSTR(x) sys_errlist[x]
|
|
+#endif
|
|
#else
|
|
# define ERRSTR(x) strerror(x, vaxc$errno)
|
|
#endif
|