[build] Fix misaligned table entries when using gcc 4.5

Declarations without the accompanying __table_entry cause misalignment
of the table entries when using gcc 4.5.  Fix by adding the
appropriate __table_entry macro or (where possible) by removing
unnecessary forward declarations.

Signed-off-by: Piotr Jaroszyński <p.jaroszynski@gmail.com>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Piotr Jaroszyński
2010-08-20 10:13:04 +01:00
committed by Michael Brown
parent 49d6f57005
commit b9eaf24df2
14 changed files with 17 additions and 26 deletions
+1 -1
View File
@@ -44,7 +44,7 @@ static LIST_HEAD ( udp_conns );
/* Forward declatations */
static struct interface_descriptor udp_xfer_desc;
struct tcpip_protocol udp_protocol;
struct tcpip_protocol udp_protocol __tcpip_protocol;
/**
* Bind UDP connection to local port