ethr-wake: can use ether_hostton on uclibc >= 0.9.30
By Leonid Lisovskiy (lly.dev AT gmail.com) Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
b9762922d1
commit
22cbfbd996
@ -115,7 +115,10 @@ static void get_dest_addr(const char *hostid, struct ether_addr *eaddr)
|
|||||||
if (eap) {
|
if (eap) {
|
||||||
*eaddr = *eap;
|
*eaddr = *eap;
|
||||||
bb_debug_msg("The target station address is %s\n\n", ether_ntoa(eaddr));
|
bb_debug_msg("The target station address is %s\n\n", ether_ntoa(eaddr));
|
||||||
#if !defined(__UCLIBC__)
|
#if !defined(__UCLIBC_MAJOR__) \
|
||||||
|
|| __UCLIBC_MAJOR__ > 0 \
|
||||||
|
|| __UCLIBC_MINOR__ > 9 \
|
||||||
|
|| (__UCLIBC_MINOR__ == 9 && __UCLIBC_SUBLEVEL__ >= 30)
|
||||||
} else if (ether_hostton(hostid, eaddr) == 0) {
|
} else if (ether_hostton(hostid, eaddr) == 0) {
|
||||||
bb_debug_msg("Station address for hostname %s is %s\n\n", hostid, ether_ntoa(eaddr));
|
bb_debug_msg("Station address for hostname %s is %s\n\n", hostid, ether_ntoa(eaddr));
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user