summaryrefslogtreecommitdiff
path: root/graphics/xv/patches/patch-af
blob: 4b407d7a75a7f0b87ecd051db9ad02cb81f9f941 (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
27
28
29
30
31
32
33
34
35
36
$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