[PATCH] ether_wake: uClibc >= 0.9.30 has ether_hostton

Denys Vlasenko vda.linux at googlemail.com
Sun Aug 30 14:25:15 UTC 2009


On Sunday 30 August 2009 07:41, Leonid Lisovskiy wrote:
> This patch enables usage of ether_hostton function in ether_wake
> applet for uClibc >= 0.9.30 builds.
> 
> --- busybox-orig/networking/ether-wake.c	2009-06-21 22:32:00.000000000 +0000
> +++ busybox/networking/ether-wake.c	2009-07-22 18:17:58.000000000 +0000
> @@ -115,7 +115,8 @@ static void get_dest_addr(const char *ho
>  	if (eap) {
>  		*eaddr = *eap;
>  		bb_debug_msg("The target station address is %s\n\n", ether_ntoa(eaddr));
> -#if !defined(__UCLIBC__)
> +#if !defined(__UCLIBC__)

(__UCLIBC_MAJOR__ > 0) || (__UCLIBC_MAJOR__ == 0 && __UCLIBC_MINOR__ >= 9 && __UCLIBC_SUBLEVEL__ >= 30)

So, __UCLIBC_MAJOR__ = 0, __UCLIBC_MINOR__ = 10, __UCLIBC_SUBLEVEL__ = 0
would be rejected?

--
vda


More information about the busybox mailing list