mirror of
https://github.com/mpv-player/mpv
synced 2024-12-21 22:30:22 +00:00
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
This commit is contained in:
parent
4549fd1164
commit
411bc4af1e
2
configure
vendored
2
configure
vendored
@ -2642,7 +2642,7 @@ fi
|
||||
echocheck "DVD support (libmpdvdkit)"
|
||||
if test "$_dvdkit" = auto ; then
|
||||
_dvdkit=no
|
||||
if linux || freebsd ; then
|
||||
if linux || freebsd || netbsd ; then
|
||||
test -f "./libmpdvdkit/Makefile" && _dvdkit=yes
|
||||
fi
|
||||
fi
|
||||
|
@ -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;
|
||||
|
||||
@ -63,6 +67,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;
|
||||
|
Loading…
Reference in New Issue
Block a user