pkgsrc-Bugs archive

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

Re: pkg/47820 (x11/xf86-video-chips 1.2.5 /bin/cp /usr/pkgsrc/x11/xf86-video-chips/files/iopl.h)



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

From: "OBATA Akio" <obache%netbsd.org@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: 
Subject: Re: pkg/47820 (x11/xf86-video-chips 1.2.5 /bin/cp
 /usr/pkgsrc/x11/xf86-video-chips/files/iopl.h)
Date: Sat, 18 May 2013 19:07:56 +0900

 Not tested, but something like following?
 
 --- util/iopl.h.orig    2013-05-18 18:44:43.650726000 +0000
 +++ util/iopl.h
 @@ -37,8 +37,13 @@ int iopl(int level);
   #include <stdlib.h>
 
   #ifdef __NetBSD__
 +# if defined(__i386__)
   #  define SET_IOPL() i386_iopl(3)
   #  define RESET_IOPL() i386_iopl(0)
 +# else
 +#  define SET_IOPL() x86_64_iopl(3)
 +#  define RESET_IOPL() x86_64_iopl(0)
 +# endif
   #else
   #  if defined(SVR4) && defined(i386)
   #    ifndef SI86IOPL
 
 
 -- 
 OBATA Akio / obache%NetBSD.org@localhost
 


Home | Main Index | Thread Index | Old Index