diff --git a/Makefile b/Makefile index 3d55337..1a02c94 100644 --- a/Makefile +++ b/Makefile @@ -178,9 +178,13 @@ endif endif ifeq ($(CONFIG_PLATFORM_I386_PC), y) -EXTRA_CFLAGS += -DCONFIG_LITTLE_ENDIAN -SUBARCH := $(shell uname -m | sed -e s/i.86/i386/) +SUBARCH := $(shell uname -m | sed -e s/i.86/i386/ | sed -e s/ppc/powerpc/) ARCH ?= $(SUBARCH) +ifeq ($(ARCH), "powerpc") +EXTRA_CFLAGS += -DCONFIG_BIG_ENDIAN +else +EXTRA_CFLAGS += -DCONFIG_LITTLE_ENDIAN +endif CROSS_COMPILE ?= KVER := $(shell uname -r) KSRC := /lib/modules/$(KVER)/build diff --git a/core/rtw_br_ext.c b/core/rtw_br_ext.c index f7f13dc..44b59f1 100644 --- a/core/rtw_br_ext.c +++ b/core/rtw_br_ext.c @@ -45,6 +45,10 @@ #include "./8192cd_debug.h" #endif // rtw_wifi_driver +#ifndef csum_ipv6_magic +#include +#endif + #ifdef CL_IPV6_PASS #ifdef __KERNEL__ #include