|
@@ -31,6 +31,7 @@
|
|
|
|
|
|
__BEGIN_DECLS
|
|
__BEGIN_DECLS
|
|
|
|
|
|
|
|
+#if defined __UCLIBC_HAS_IPV4__ || defined __UCLIBC_HAS_IPV6__
|
|
/* Convert 48 bit Ethernet ADDRess to ASCII. */
|
|
/* Convert 48 bit Ethernet ADDRess to ASCII. */
|
|
extern char *ether_ntoa (__const struct ether_addr *__addr) __THROW;
|
|
extern char *ether_ntoa (__const struct ether_addr *__addr) __THROW;
|
|
extern char *ether_ntoa_r (__const struct ether_addr *__addr, char *__buf)
|
|
extern char *ether_ntoa_r (__const struct ether_addr *__addr, char *__buf)
|
|
@@ -42,8 +43,10 @@ extern struct ether_addr *ether_aton (__const char *__asc) __THROW;
|
|
extern struct ether_addr *ether_aton_r (__const char *__asc,
|
|
extern struct ether_addr *ether_aton_r (__const char *__asc,
|
|
struct ether_addr *__addr) __THROW;
|
|
struct ether_addr *__addr) __THROW;
|
|
libc_hidden_proto(ether_aton_r)
|
|
libc_hidden_proto(ether_aton_r)
|
|
|
|
+#endif
|
|
|
|
|
|
-#if 0
|
|
+#if defined __UCLIBC_HAS_SOCKET__ || defined __UCLIBC_HAS_IPV4__ || \
|
|
|
|
+ defined __UCLIBC_HAS_IPV6__
|
|
/* Map 48 bit Ethernet number ADDR to HOSTNAME. */
|
|
/* Map 48 bit Ethernet number ADDR to HOSTNAME. */
|
|
extern int ether_ntohost (char *__hostname, __const struct ether_addr *__addr)
|
|
extern int ether_ntohost (char *__hostname, __const struct ether_addr *__addr)
|
|
__THROW;
|
|
__THROW;
|