fix svn patch breakage in glib
[librecmc/librecmc.git] / obsolete-buildroot / sources / hotplug.patch
1 diff -urN diethotplug-0.4.orig/pci.c diethotplug-0.4/pci.c
2 --- diethotplug-0.4.orig/pci.c  Wed Jan  9 13:57:29 2002
3 +++ diethotplug-0.4/pci.c       Wed Jan 30 22:35:24 2002
4 @@ -68,8 +68,8 @@
5                 }
6  
7                 /* check that the class matches */
8 -               class_temp = pci_module_map[i].class_mask & pci_class;
9 -               if (pci_module_map[i].class != class_temp) {
10 +               class_temp = (pci_module_map[i].class ^ pci_class) & pci_module_map[i].class_mask; 
11 +               if (class_temp != 0) { 
12                         dbg ("class mask check failed %x != %x",
13                              pci_module_map[i].class, class_temp);
14                         continue;
15 --- diethotplug-0.4/Makefile.orig       Wed Jan  9 14:28:05 2002
16 +++ diethotplug-0.4/Makefile    Mon Jul  8 07:29:00 2002
17 @@ -135,13 +135,13 @@
18  
19  # Rules on how to create the generated header files
20  usb_modules.h:
21 -       perl convert_usb.pl < /lib/modules/$(KERNEL_VERSION)/modules.usbmap > $@
22 +       perl convert_usb.pl < $(TARGET_DIR)/lib/modules/$(KERNEL_VERSION)/modules.usbmap > $@
23  
24  pci_modules.h:
25 -       perl convert_pci.pl < /lib/modules/$(KERNEL_VERSION)/modules.pcimap > $@
26 +       perl convert_pci.pl < $(TARGET_DIR)/lib/modules/$(KERNEL_VERSION)/modules.pcimap > $@
27  
28  ieee1394_modules.h:
29 -       perl convert_ieee1394.pl < /lib/modules/$(KERNEL_VERSION)/modules.ieee1394map > $@
30 +       perl convert_ieee1394.pl < $(TARGET_DIR)/lib/modules/$(KERNEL_VERSION)/modules.ieee1394map > $@
31  
32  hotplug_version.h:
33         @echo \#define HOTPLUG_VERSION \"$(VERSION)\" > $@