mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
fix
This commit is contained in:
parent
e24dcf6f87
commit
4679d28b1f
3 changed files with 11 additions and 8 deletions
|
@ -7,7 +7,7 @@
|
|||
+cc-option = $(shell if $(CC) -Werror $(1) -S -o /dev/null -xc /dev/null \
|
||||
+ > /dev/null 2>&1; then echo "$(1)"; else echo "$(2)"; fi ;)
|
||||
+mno_outline_atomics := $(call cc-option, -mno-outline-atomics, "")
|
||||
+ccflags-y += $(mno_outline_atomics)
|
||||
+ccflags-y += $(mno_outline_atomics) -Wframe-larger-than=2600
|
||||
#ccflags-y += -Wshadow-local
|
||||
# Needed for pahole
|
||||
#ccflags-y += -femit-struct-debug-detailed=any
|
||||
|
|
|
@ -4,8 +4,8 @@
|
|||
KERNEL_DIR := /lib/modules/$(shell uname -r)/build
|
||||
endif
|
||||
|
||||
-ifeq ($(shell test -f $(KERNEL_DIR)/source/include/linux/skbuff.h && grep -qc userid $(KERNEL_DIR)/source/include/linux/skbuff.h),1)
|
||||
+ifeq ($(shell test -f $(KERNEL_DIR)/include/linux/skbuff.h && shell grep -qc userid $(KERNEL_DIR)/include/linux/skbuff.h),1)
|
||||
-ifeq ($(shell test -f $(KERNEL_DIR)/source/include/linux/skbuff.h && grep -c userid $(KERNEL_DIR)/source/include/linux/skbuff.h),1)
|
||||
+ifeq ($(shell test -f $(KERNEL_DIR)/include/linux/skbuff.h && shell grep -c userid $(KERNEL_DIR)/include/linux/skbuff.h),1)
|
||||
ccflags-y += -DUSE_HACK_USERID=1
|
||||
endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue