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/include/ipxe/rarp.h | |
parent | 49d6f5700561be091b2b25bb7641708333e4911d (diff) | |
download | ipxe-b9eaf24df211591793bfe151169a23ab1567bdf9.tar.gz |
[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/include/ipxe/rarp.h')
-rw-r--r-- | src/include/ipxe/rarp.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/include/ipxe/rarp.h b/src/include/ipxe/rarp.h index 7edbe2191..f84301a43 100644 --- a/src/include/ipxe/rarp.h +++ b/src/include/ipxe/rarp.h @@ -9,8 +9,8 @@ FILE_LICENCE ( GPL2_OR_LATER ); -struct net_protocol; +#include <ipxe/netdevice.h> -extern struct net_protocol rarp_protocol; +extern struct net_protocol rarp_protocol __net_protocol; #endif /* _IPXE_RARP_H */ |