Package: pciutils
Version: 2.1.11

This patch allows pciutils to build and run on Debian GNU/kFreeBSD. Part of it is taken from the FreeBSD port of libpci, so upstream may like this patch as well.


In file lib/configure:

'uname -s' returns 'GNU/kFreeBSD'. The first part is truncated to make sure libpci builds for a FreeBSD kernel based system. This also works for any other Debian system in the future that is based on a kernel other than linux, eg. Debian GNU/kNetBSD.


In file lib/fbsd-device.c:

Patch from FreeBSD's libpci port, to include the correct PCI headers for that system. It needed an extra kernel version definition because Debian GNU/kFreeBSD has __FreeBSD_kernel_version instead of __FreeBSD_version. Also an extra header was included (stdint.h) because in Debian GNU/kFreeBSD it is not automatically used.



Robin Elfrink


-- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Reply via email to