# HG changeset patch # User pl # Date 1020808307 0 # Node ID 5f020e2dc745830700fc3fa5ce4e279d5b1e542e # Parent 3b9e278d23d2d2ccb89d5ce901d7b9a437867d59 patchs for NetBSD by Bernd Ernesti : - 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. diff -r 3b9e278d23d2 -r 5f020e2dc745 configure --- a/configure Tue May 07 15:17:06 2002 +0000 +++ b/configure Tue May 07 21:51:47 2002 +0000 @@ -2642,7 +2642,7 @@ 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 diff -r 3b9e278d23d2 -r 5f020e2dc745 libdha/mtrr.c --- a/libdha/mtrr.c Tue May 07 15:17:06 2002 +0000 +++ b/libdha/mtrr.c Tue May 07 21:51:47 2002 +0000 @@ -13,11 +13,14 @@ #include "AsmMacros.h" #if defined (__i386__) && defined (__NetBSD__) +#include +#if __NetBSD_Version__ > 105240000 #include #include #include #include #endif +#endif #if defined( __i386__ ) int mtrr_set_type(unsigned base,unsigned size,int type) @@ -47,6 +50,7 @@ } return ENOSYS; #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