- tabs in preamble
[packages/lsvpd.git] / lsvpd-gcc4.patch
CommitLineData
e78e7238
PS
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
3@@ -382,7 +382,7 @@
4 s.supertype = DEVICE_TYPE_SCSI;
5 i = 0;
6 while (NULL != (x = device_scsi_ds_prefixes[i].type)) {
7- if (DEVICE_TYPE_SCSI != x) {
8+ if (strcmp(DEVICE_TYPE_SCSI, x)) {
9 s.type = x;
10 node_type_register(&s);
11 }
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
14@@ -57,23 +57,10 @@
15 *
16 * Thanks to Rusty Russell, Jeremy Kerr and David Gibson for hints on
17 * all of this.
18- *
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.
25 */
26-
27- /*
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.
31- */
32
33 #define INIT(fn) static initcall_t __initcall_##fn \
34-__attribute__((__unused__)) \
35+__attribute__((__used__)) \
36 __attribute__((__section__("init_call"))) = &fn
37
38 static inline void call_inits (void)
This page took 0.039373 seconds and 4 git commands to generate.