[PATCH v2 07/10] iim: fix compilation when NET is not selected
Eric Bénard
eric at eukrea.com
Fri May 18 03:41:42 EDT 2012
Signed-off-by: Eric Bénard <eric at eukrea.com>
---
include/net.h | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/include/net.h b/include/net.h
index 3f2187e..eb087b2 100644
--- a/include/net.h
+++ b/include/net.h
@@ -64,8 +64,13 @@ void eth_halt(void); /* stop SCC */
* board code for boards which store their MAC address at some unusual
* place.
*/
+#if !defined(CONFIG_NET)
+static inline void eth_register_ethaddr(int ethid, const char *ethaddr)
+{
+}
+#else
void eth_register_ethaddr(int ethid, const char *ethaddr);
-
+#endif
/*
* Ethernet header
*/
--
1.7.7.6
More information about the barebox
mailing list