diff -uraN pciutils-3.0.0.orig/lib/configure pciutils-3.0.0/lib/configure
--- pciutils-3.0.0.orig/lib/configure	2008-04-10 19:15:47.000000000 +0000
+++ pciutils-3.0.0/lib/configure	2009-01-29 04:15:35.411007264 +0000
@@ -18,8 +18,8 @@
 
 echo_n "Configuring libpci for your system..."
 if [ -z "$HOST" ] ; then
-	sys=`uname -s`
-	rel=`uname -r`
+	sys=`uname -s | sed 's/\///'`
+	rel=`uname -r | sed 's/\///'`
 	if [ "$sys" = "AIX" -a -x /usr/bin/oslevel -a -x /usr/sbin/lsattr ]
 	then
 		rel=`/usr/bin/oslevel`
@@ -64,7 +64,7 @@
 		echo >>$c '#define PCI_HAVE_64BIT_ADDRESS'
 		echo >>$c '#define PCI_USE_DNS'
 		;;
-	sunos)
+	sunos|gnukopensolaris)
 		case $cpu in
 				i386)		echo_n " i386-ports"
 						echo >>$c "#define PCI_HAVE_PM_INTEL_CONF"
diff -uraN pciutils-3.0.0.orig/lib/i386-ports.c pciutils-3.0.0/lib/i386-ports.c
--- pciutils-3.0.0.orig/lib/i386-ports.c	2008-04-10 19:15:47.000000000 +0000
+++ pciutils-3.0.0/lib/i386-ports.c	2009-01-29 04:17:05.894025479 +0000
@@ -16,7 +16,7 @@
 #include "i386-io-linux.h"
 #elif defined(PCI_OS_GNU)
 #include "i386-io-hurd.h"
-#elif defined(PCI_OS_SUNOS)
+#elif defined(PCI_OS_SUNOS) || defined(PCI_OS_GNUKOPENSOLARIS)
 #include "i386-io-sunos.h"
 #elif defined(PCI_OS_WINDOWS)
 #include "i386-io-windows.h"
