summaryrefslogtreecommitdiffstats
path: root/libdha
diff options
context:
space:
mode:
authorpl <pl@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-05-07 21:51:47 +0000
committerpl <pl@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-05-07 21:51:47 +0000
commit411bc4af1eecc51158298ce8cde54710f5e302d2 (patch)
tree8390691c69333dcebef84d750eb148b4e5478786 /libdha
parent4549fd116410e7cbc0e14120dfee0e4b99a34e66 (diff)
downloadmpv-411bc4af1eecc51158298ce8cde54710f5e302d2.tar.bz2
mpv-411bc4af1eecc51158298ce8cde54710f5e302d2.tar.xz
patchs for NetBSD by Bernd Ernesti <mplayer@lists.veego.de>:
- the libmpdvdkit auto check works fine after adding the netbsd check to the linux and freebsd one - NetBSD only support MTRR after 1.5X, so libdha/mtrr.c needs a small patch to only enable it for versions after 1.5X. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6012 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libdha')
-rw-r--r--libdha/mtrr.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/libdha/mtrr.c b/libdha/mtrr.c
index aec32fcf0e..d4cc376feb 100644
--- a/libdha/mtrr.c
+++ b/libdha/mtrr.c
@@ -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 <machine/mtrr.h>
#include <machine/sysarch.h>
#endif
+#endif
#if defined( __i386__ )
int mtrr_set_type(unsigned base,unsigned size,int type)
@@ -47,6 +50,7 @@ int mtrr_set_type(unsigned base,unsigned size,int type)
}
return ENOSYS;
#elif defined (__NetBSD__)
+#if __NetBSD_Version__ > 105240000
struct mtrr *mtrrp;
int n;
@@ -64,6 +68,10 @@ int mtrr_set_type(unsigned base,unsigned size,int type)
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