diff options
author | Mike Frysinger <vapier@gentoo.org> | 2005-07-31 22:49:12 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2005-07-31 22:49:12 +0000 |
commit | d84a35f649189ae14b4a2be235c13c3e86445d65 (patch) | |
tree | 4d2d2d67cee1cc9212cf02284efc5fc953c4eba3 /networking | |
parent | 15ca58648a84ff30821ead91b47562863f36a7c5 (diff) | |
download | busybox-d84a35f649189ae14b4a2be235c13c3e86445d65.tar.gz |
patch by apgo in Bug 345 to not use ether_hostton() with uClibc
Diffstat (limited to 'networking')
-rw-r--r-- | networking/ether-wake.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/networking/ether-wake.c b/networking/ether-wake.c index 83ceece80..9ea5c0366 100644 --- a/networking/ether-wake.c +++ b/networking/ether-wake.c @@ -240,8 +240,12 @@ static inline void get_dest_addr(const char *hostid, struct ether_addr *eaddr) if (eap) { *eaddr = *eap; bb_debug_msg("The target station address is %s\n\n", ether_ntoa(eaddr)); +#if !defined(__UCLIBC__) } else if (ether_hostton(hostid, eaddr) == 0) { 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 bb_show_usage(); } |