summaryrefslogtreecommitdiff
path: root/graphics/mplayer/patches/patch-ab
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/mplayer/patches/patch-ab')
-rw-r--r--graphics/mplayer/patches/patch-ab29
1 files changed, 20 insertions, 9 deletions
diff --git a/graphics/mplayer/patches/patch-ab b/graphics/mplayer/patches/patch-ab
index 308388e8c50..3d4cc5b8e46 100644
--- a/graphics/mplayer/patches/patch-ab
+++ b/graphics/mplayer/patches/patch-ab
@@ -1,27 +1,38 @@
-$NetBSD: patch-ab,v 1.4 2002/05/03 14:50:42 wiz Exp $
+$NetBSD: patch-ab,v 1.5 2002/05/07 20:26:13 wiz Exp $
--- libdha/mtrr.c.orig Sun Apr 28 00:42:24 2002
+++ libdha/mtrr.c
-@@ -13,9 +13,12 @@
+@@ -13,11 +13,14 @@
#include "AsmMacros.h"
#if defined (__i386__) && defined (__NetBSD__)
+#include <sys/param.h>
+#if __NetBSD_Version__ > 105240000
#include <stdint.h>
--#include <stdlib.h>
+ #include <stdlib.h>
#include <machine/mtrr.h>
-+#endif
-+#include <stdlib.h>
#include <machine/sysarch.h>
#endif
++#endif
-@@ -46,7 +49,7 @@
- return wr_len == strlen(sout) ? 0 : EPERM;
+ #if defined( __i386__ )
+ int mtrr_set_type(unsigned base,unsigned size,int type)
+@@ -47,6 +50,7 @@
}
return ENOSYS;
--#elif defined (__NetBSD__)
-+#elif defined (__NetBSD__) && (__NetBSD_Version__ > 105240000)
+ #elif defined (__NetBSD__)
++#if __NetBSD_Version__ > 105240000
struct mtrr *mtrrp;
int n;
+@@ -64,6 +68,10 @@
+ free(mtrrp);
+ return 0;
+ #else
++ /* NetBSD prior to 1.5Y doesn't have MTRR support */
++ return ENOSYS;
++#endif
++#else
+ #warning Please port MTRR stuff!!!
+ return ENOSYS;
+ #endif