diff options
author | Thierry Vignaud <tv@mageia.org> | 2012-08-30 10:35:48 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mageia.org> | 2012-08-30 10:35:48 +0000 |
commit | 38c0b46999add5026d4e9b5ef422600b4e3512eb (patch) | |
tree | be48aeb396ddf21360bb61f234c4376a28b4821e | |
parent | d0e77334e61e90d50c21ce8d1d2405b45d7c5193 (diff) | |
download | ldetect-38c0b46999add5026d4e9b5ef422600b4e3512eb.tar ldetect-38c0b46999add5026d4e9b5ef422600b4e3512eb.tar.gz ldetect-38c0b46999add5026d4e9b5ef422600b4e3512eb.tar.bz2 ldetect-38c0b46999add5026d4e9b5ef422600b4e3512eb.tar.xz ldetect-38c0b46999add5026d4e9b5ef422600b4e3512eb.zip |
fix build on FC: generate PCI classes info using ids from pcutils header
instead of deprecated kernel header (Andrey Bondrov)
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | NEWS | 3 | ||||
-rwxr-xr-x | generate_pciclass.pl | 2 |
3 files changed, 5 insertions, 2 deletions
@@ -35,7 +35,7 @@ libldetect.a: $(lib_objs) ar -cru $@ $^ ranlib $@ -pciclass.c: /usr/include/linux/pci.h /usr/include/linux/pci_ids.h +pciclass.c: /usr/include/pci/pci.h /usr/include/pci/header.h rm -f $@ perl generate_pciclass.pl $^ > $@ chmod a-w $@ @@ -1,3 +1,6 @@ +- generate PCI classes info using ids from pcutils header instead of deprecated + kernel header (Andrey Bondrov) + Version 0.12.1 - 19 January 2012, Thierry Vignaud - do not ignore /etc/modprobe.d/* diff --git a/generate_pciclass.pl b/generate_pciclass.pl index 948431d..363d52a 100755 --- a/generate_pciclass.pl +++ b/generate_pciclass.pl @@ -8,7 +8,7 @@ static struct { } classes[] = { ); -/^#define PCI_CLASS_(\w+)\s+(0x\w{4})/ and print qq( { $2, "$1" },\n) while <>; +/^#define\s+PCI_CLASS_(\w+)\s+(0x\w{4})/ and print qq( { $2, "$1" },\n) while <>; print ' }; |