diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2009-11-25 15:39:36 +0100 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2009-12-19 01:49:16 +0100 |
commit | dbfac4a0c55a4342040775780edb91656809beee (patch) | |
tree | 79c0ea05268652061293fc9a337d232dc6edb762 | |
parent | c32d558c7e4aec1039af0977d66790c80cc045ff (diff) | |
download | uClibc-alpine-dbfac4a0c55a4342040775780edb91656809beee.tar.bz2 uClibc-alpine-dbfac4a0c55a4342040775780edb91656809beee.tar.xz |
ether_*() depend on socket or IP support
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
-rw-r--r-- | include/netinet/ether.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/netinet/ether.h b/include/netinet/ether.h index 0f7029f95..f5f058de2 100644 --- a/include/netinet/ether.h +++ b/include/netinet/ether.h @@ -29,6 +29,7 @@ __BEGIN_DECLS +#if 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) @@ -39,7 +40,10 @@ 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; @@ -51,6 +55,7 @@ extern int ether_hostton (__const char *__hostname, struct ether_addr *__addr) /* Scan LINE and set ADDR and HOSTNAME. */ extern int ether_line (__const char *__line, struct ether_addr *__addr, char *__hostname) __THROW; +#endif __END_DECLS |