summaryrefslogtreecommitdiff
path: root/include/netinet/ether.h
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2010-01-19 17:21:52 +0100
committerCarmelo Amoroso <carmelo.amoroso@st.com>2010-01-21 12:43:41 +0100
commit42303a2fc71e095e4e2c4f9caa87e05bb266c334 (patch)
tree18e023f332db7595f3a064521eee6ccf6592afb5 /include/netinet/ether.h
parent654c4f2b35297e63eab19f756f500d1ea1d5e338 (diff)
ether_line: fix build for socket && !ip
The internal __ether_line helper needs ether_ntoa_r() Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> (cherry picked from commit 81264e8097b705f3b2a7e29be0a1a2ea853230cb) Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
Diffstat (limited to 'include/netinet/ether.h')
-rw-r--r--include/netinet/ether.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/include/netinet/ether.h b/include/netinet/ether.h
index c850e3e4f..2e52679fa 100644
--- a/include/netinet/ether.h
+++ b/include/netinet/ether.h
@@ -31,7 +31,8 @@
__BEGIN_DECLS
-#if defined __UCLIBC_HAS_IPV4__ || defined __UCLIBC_HAS_IPV6__
+#if defined __UCLIBC_HAS_SOCKET__ || defined __UCLIBC_HAS_IPV4__ || \
+ defined __UCLIBC_HAS_IPV6__
/* Convert 48 bit Ethernet ADDRess to ASCII. */
extern char *ether_ntoa (__const struct ether_addr *__addr) __THROW;
extern char *ether_ntoa_r (__const struct ether_addr *__addr, char *__buf)
@@ -43,10 +44,8 @@ extern struct ether_addr *ether_aton (__const char *__asc) __THROW;
extern struct ether_addr *ether_aton_r (__const char *__asc,
struct ether_addr *__addr) __THROW;
libc_hidden_proto(ether_aton_r)
-#endif
-#if defined __UCLIBC_HAS_SOCKET__ || defined __UCLIBC_HAS_IPV4__ || \
- defined __UCLIBC_HAS_IPV6__
+
/* Map 48 bit Ethernet number ADDR to HOSTNAME. */
extern int ether_ntohost (char *__hostname, __const struct ether_addr *__addr)
__THROW;