diff options
author | Piotr Jaroszyński <p.jaroszynski@gmail.com> | 2010-08-19 23:39:17 +0200 |
---|---|---|
committer | Michael Brown <mcb30@ipxe.org> | 2010-08-20 10:13:04 +0100 |
commit | b9eaf24df211591793bfe151169a23ab1567bdf9 (patch) | |
tree | 0d08906e0754715c4eaeb1322459baecb050eeeb /src/net/udp.c | |
parent | 49d6f5700561be091b2b25bb7641708333e4911d (diff) | |
download | ipxe-b9eaf24df211591793bfe151169a23ab1567bdf9.zip ipxe-b9eaf24df211591793bfe151169a23ab1567bdf9.tar.gz ipxe-b9eaf24df211591793bfe151169a23ab1567bdf9.tar.bz2 |
[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>
Diffstat (limited to 'src/net/udp.c')
-rw-r--r-- | src/net/udp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net/udp.c b/src/net/udp.c index 0ed1503..9bd80f3 100644 --- a/src/net/udp.c +++ b/src/net/udp.c @@ -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 |