summaryrefslogtreecommitdiff
path: root/graphics/xv/patches/patch-af
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/xv/patches/patch-af')
-rw-r--r--graphics/xv/patches/patch-af50
1 files changed, 30 insertions, 20 deletions
diff --git a/graphics/xv/patches/patch-af b/graphics/xv/patches/patch-af
index 4b407d7a75a..b78207a9b28 100644
--- a/graphics/xv/patches/patch-af
+++ b/graphics/xv/patches/patch-af
@@ -1,8 +1,8 @@
-$NetBSD: patch-af,v 1.4 2004/08/22 08:02:30 minskim Exp $
+$NetBSD: patch-af,v 1.5 2005/08/10 16:50:18 he Exp $
---- xv.h.orig Tue Jan 4 17:12:42 2000
-+++ xv.h Tue Jan 4 17:13:38 2000
-@@ -107,9 +107,7 @@
+--- xv.h.orig 2005-07-29 15:52:23.000000000 +0200
++++ xv.h
+@@ -137,9 +137,7 @@
#endif
@@ -13,24 +13,34 @@ $NetBSD: patch-af,v 1.4 2004/08/22 08:02:30 minskim Exp $
/* include files */
-@@ -128,7 +126,7 @@
+@@ -158,7 +156,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
+ # ifndef __NetBSD__
+-# if !(defined __GLIBC__ && __GLIBC__ >= 2)
++# if !(defined(BSD) && (BSD >= 199103)) && !(defined __GLIBC__ && __GLIBC__ >= 2)
+ extern int errno; /* SHOULD be in errno.h, but often isn't */
+ extern char *sys_errlist[]; /* this too... */
+ # endif
+@@ -170,7 +168,7 @@
+ #ifdef VMS
+ # define ERRSTR(x) strerror(x, vaxc$errno)
+ #else
+-# if defined(__BEOS__) || defined(__linux__) /* or all modern/glibc systems? */
++# if defined(__BEOS__) || defined(__linux__) || defined(__INTERIX) /* or all modern/glibc systems? */
+ # define ERRSTR(x) strerror(x)
+ # else
+ # define ERRSTR(x) sys_errlist[x]
+@@ -345,7 +343,11 @@
#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)
+ #ifndef S_IRWUSR
+-# define S_IRWUSR (S_IRUSR|__S_IWRITE)
++# ifdef __S_IWRITE
++# define S_IRWUSR (S_IRUSR|__S_IWRITE)
++# else
++# define S_IRWUSR (S_IRUSR|S_IWUSR)
++# endif
#endif
+
+ #ifndef MAXPATHLEN