this tiny patch will fix pnpinfo so it doesn't core dump (bus error) any
longer on arch=amd64.

cheers.
alex

-- 
a13x
diff --git a/contrib/pnpinfo/pnpinfo.c b/contrib/pnpinfo/pnpinfo.c
index 790cfd8..c09f4ef 100644
--- a/contrib/pnpinfo/pnpinfo.c
+++ b/contrib/pnpinfo/pnpinfo.c
@@ -588,7 +588,7 @@ main(int argc, char **argv)
 {
     int num_pnp_devs;
 
-#ifdef __i386__
+#if defined(__i386__) || defined(__amd64__)
     /* Hey what about a i386_iopl() call :) */
     if (open("/dev/io", O_RDONLY) < 0)
        errx(1, "can't get I/O privilege");
_______________________________________________
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"

Reply via email to