patch by apgo in Bug 345 to not use ether_hostton() with uClibc

This commit is contained in:
Mike Frysinger 2005-07-31 22:49:12 +00:00
parent 15ca58648a
commit d84a35f649

View File

@ -240,8 +240,12 @@ static inline 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__)
} 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));
#else
# warning Need to implement ether_hostton() for uClibc
#endif
} else } else
bb_show_usage(); bb_show_usage();
} }