batman-adv: Prevent use from libc headers to not build with BIG_ENDIAN 757/head
authorHendrik Borghorst <hendrikborghorst@gmail.com>
Sat, 27 Nov 2021 11:02:46 +0000 (12:02 +0100)
committerHendrik Borghorst <hendrikborghorst@gmail.com>
Sat, 27 Nov 2021 12:53:53 +0000 (13:53 +0100)
commit523821c1959cb288b55b7fcc8761c83f6ff48c4d
tree74cf01289b7c38f82e7d4a4d81bc6164b906add1
parentec33ebf0f638dcf793d13a9d88dc860f06a677e1
batman-adv: Prevent use from libc headers to not build with BIG_ENDIAN

Commit 97d35a552ec5b6ddf7923dd2f9a8eb973526acea of musl introduced the
macros __LITTLE_ENDIAN and __BIG_ENDIAN in alltypes.h. These are pulled
into the compilation of batman-adv. This has the side effect that the
function is_multicast_ether_addr of etherdevice.h in Linux kernel is
compiled as the big endian version and so fails to work properly on
little endian devices.

This commits prevents pulling in header files of musl libc similar to
OpenWRT commit 9ac47ee46918c45b91f4e4d1fa76b1e26b9d57fe

Signed-off-by: Hendrik Borghorst <hendrikborghorst@gmail.com>
batman-adv/Makefile