buildrootschalter/package/udhcp/udhcp-gcc_complains.patch
Eric Andersen 0d26efed3a lord_apollyon writes:
When gcc 3.4.4 is configured for the toolchain, it subsequently fails to
compile udhcp-0.9.8/dhcpc.c complaining about an improper switch statement
syntax error:

dhcpc.c: In function `perform_renew':
dhcpc.c:136: error: label at end of compound statement
2006-04-06 18:17:50 +00:00

12 lines
258 B
Diff

--- udhcp-0.9.8/dhcpc.c.orig 2005-11-24 01:41:48.000000000 +1000
+++ udhcp-0.9.8/dhcpc.c 2005-11-24 01:44:16.000000000 +1000
@@ -132,6 +132,8 @@
state = INIT_SELECTING;
break;
case INIT_SELECTING:
+ default:
+ break;
}
/* start things over */