[git commit master] ethr-wake: can use ether_hostton on uclibc >= 0.9.30

Denys Vlasenko vda.linux at googlemail.com
Sun Aug 30 14:23:29 UTC 2009


commit: http://git.busybox.net/busybox/commit/?id=22cbfbd9964321ace99d1a6a31ee1ba685202c55
branch: http://git.busybox.net/busybox/commit/?id=refs/heads/master

By Leonid Lisovskiy (lly.dev AT gmail.com)

Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
 networking/ether-wake.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/networking/ether-wake.c b/networking/ether-wake.c
index 882429d..59f4053 100644
--- a/networking/ether-wake.c
+++ b/networking/ether-wake.c
@@ -115,7 +115,10 @@ static 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__)
+#if !defined(__UCLIBC_MAJOR__) \
+ || __UCLIBC_MAJOR__ > 0 \
+ || __UCLIBC_MINOR__ > 9 \
+ || (__UCLIBC_MINOR__ == 9 && __UCLIBC_SUBLEVEL__ >= 30)
 	} else if (ether_hostton(hostid, eaddr) == 0) {
 		bb_debug_msg("Station address for hostname %s is %s\n\n", hostid, ether_ntoa(eaddr));
 #endif
-- 
1.6.3.3



More information about the busybox-cvs mailing list