pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pkg/44785: sysutils/libpciaccess build problem



The following reply was made to PR pkg/44785; it has been noted by GNATS.

From: Takahiro Kambe <taca%NetBSD.org@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: taca%NetBSD.org@localhost
Subject: Re: pkg/44785: sysutils/libpciaccess build problem
Date: Wed, 30 Mar 2011 14:35:14 +0900 (JST)

 In message <20110329101500.E439663C043%www.NetBSD.org@localhost>
        on Tue, 29 Mar 2011 10:15:00 +0000 (UTC),
        taca%NetBSD.org@localhost wrote:
 >>Fix:
 >      Unknown.
 Applying this change to netbsd_pci.c (after patched) fix build problem
 on NetBSD 4.0_STABLE which dosen't have _X86_SYSARCH_L macro.
 
 diff -u netbsd_pci.c.~1~ netbsd_pci.c
 --- netbsd_pci.c.~1~   2011-03-29 18:22:46.000000000 +0900
 +++ netbsd_pci.c       2011-03-30 14:35:55.000000000 +0900
 @@ -26,7 +26,16 @@
  #ifdef HAVE_MTRR
  #include <machine/sysarch.h>
  #include <machine/mtrr.h>
 -#define netbsd_set_mtrr(mr, num)      _X86_SYSARCH_L(set_mtrr)(mr, num)
 +#ifdef _X86_SYSARCH_L
 +#define netbsd_set_mtrr(mr, num)      _X86_SYSARCH_L(set_mtrr)((mr), (num))
 +#else
 +#ifdef __i386__
 +#define netbsd_set_mtrr(mr, num)      i386_set_mtrr((mr), (num))
 +#endif
 +#ifdef __amd64__
 +#define netbsd_set_mtrr(mr, num)      x86_64_set_mtrr((mr), (num))
 +#endif
 +#endif
  #endif
  
  #include <dev/pci/pcidevs.h>
 
 
 -- 
 Takahiro Kambe <taca%NetBSD.org@localhost>/<taca%back-street.net@localhost>
 


Home | Main Index | Thread Index | Old Index