1 --- lsvpd-0.16.0/src/device_scsi.c.orig 2006-09-20 15:11:49.000000000 +0000
2 +++ lsvpd-0.16.0/src/device_scsi.c 2006-09-20 15:14:08.596244500 +0000
4 s.supertype = DEVICE_TYPE_SCSI;
6 while (NULL != (x = device_scsi_ds_prefixes[i].type)) {
7 - if (DEVICE_TYPE_SCSI != x) {
8 + if (strcmp(DEVICE_TYPE_SCSI, x)) {
10 node_type_register(&s);
12 --- lsvpd-0.16.0/src/init.h.orig 2006-09-13 23:58:24.000000000 +0000
13 +++ lsvpd-0.16.0/src/init.h 2006-09-20 15:29:28.845091000 +0000
16 * Thanks to Rusty Russell, Jeremy Kerr and David Gibson for hints on
19 - * Building with -funit-at-a-time will result in a link failure, since
20 - * it optimises away pretty much everything to do with this code.
21 - * This means that building with -O2 will fail, since it implies the
22 - * above optimisation. However, it is possible to build with -O2 by
23 - * adding -fno-unit-at-a-time. Thanks to Olaf Hering <olh@suse.de>
24 - * for working this out.
28 - * When building for GCC 4.1.0 ( perhaps 4.0.X and/or >4.1.0) the -O
29 - * option will optimise all this away, so you need to include the
30 - * -fno-unit-at-a-time option.
33 #define INIT(fn) static initcall_t __initcall_##fn \
34 -__attribute__((__unused__)) \
35 +__attribute__((__used__)) \
36 __attribute__((__section__("init_call"))) = &fn
38 static inline void call_inits (void)