platform: use KERNEL_VERSION to simplify uClibc version checking
This makes reading the logic (as well as adding new code) a lot simpler, and fixes one or two cases that were broken due to incorrect sub-version tests. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
This commit is contained in:
@@ -121,10 +121,7 @@ static void get_dest_addr(const char *hostid, struct ether_addr *eaddr)
|
||||
eap = ether_aton_r(hostid, eaddr);
|
||||
if (eap) {
|
||||
bb_debug_msg("The target station address is %s\n\n", ether_ntoa(eap));
|
||||
#if !defined(__UCLIBC_MAJOR__) \
|
||||
|| __UCLIBC_MAJOR__ > 0 \
|
||||
|| __UCLIBC_MINOR__ > 9 \
|
||||
|| (__UCLIBC_MINOR__ == 9 && __UCLIBC_SUBLEVEL__ >= 30)
|
||||
#if !defined(__UCLIBC__) || UCLIBC_VERSION >= KERNEL_VERSION(0, 9, 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
|
||||
|
Reference in New Issue
Block a user