summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHendrik Borghorst <hendrikborghorst@gmail.com>2021-11-27 12:02:46 +0100
committerSven Eckelmann <sven@narfation.org>2021-11-27 15:16:12 +0100
commit47436b04fd32cf3b6e6b46c25cb9c1fff3a995fd (patch)
tree3138a0dde7883a105bb553f9bae3c01a9a800e49
parent6d10a01dfa68eb5e25b84b33e33aefd312f46f4d (diff)
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> (cherry picked from commit 523821c1959cb288b55b7fcc8761c83f6ff48c4d) Signed-off-by: Sven Eckelmann <sven@narfation.org>
-rw-r--r--batman-adv/Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/batman-adv/Makefile b/batman-adv/Makefile
index 78a0456..bea29cf 100644
--- a/batman-adv/Makefile
+++ b/batman-adv/Makefile
@@ -61,6 +61,7 @@ PKG_EXTRA_CFLAGS:= \
$(patsubst CONFIG_%, -DCONFIG_%=1, $(patsubst %=y,%,$(filter %=y,$(PKG_EXTRA_KCONFIG)))) \
NOSTDINC_FLAGS = \
+ $(KERNEL_NOSTDINC_FLAGS) \
-I$(PKG_BUILD_DIR)/net/batman-adv \
-I$(STAGING_DIR)/usr/include/mac80211-backport \
-I$(STAGING_DIR)/usr/include/mac80211-backport/uapi \