mirror of
https://github.com/opnsense/src.git
synced 2026-04-24 07:37:25 -04:00
LinuxKPI: always include linux/kconfig.h
Always include linux/kconfig.h which seems to match Linux behaviour and avoid errors compiling code expected from that file but never included. Sponsored by: The FreeBSD Foundation Reviewed by: emaste, imp Differential Revision: https://reviews.freebsd.org/D46801 (cherry picked from commit 41283b454b7abd3de251ec8234d19b67dbca3916)
This commit is contained in:
parent
0804848403
commit
20fe7e889f
2 changed files with 4 additions and 2 deletions
|
|
@ -318,7 +318,8 @@ NORMAL_CTFCONVERT= @:
|
|||
|
||||
# Linux Kernel Programming Interface C-flags
|
||||
LINUXKPI_INCLUDES= -I$S/compat/linuxkpi/common/include \
|
||||
-I$S/compat/linuxkpi/dummy/include
|
||||
-I$S/compat/linuxkpi/dummy/include \
|
||||
-include $S/compat/linuxkpi/common/include/linux/kconfig.h
|
||||
LINUXKPI_C= ${NORMAL_C} ${LINUXKPI_INCLUDES}
|
||||
|
||||
# Infiniband C flags. Correct include paths and omit errors that linux
|
||||
|
|
|
|||
|
|
@ -109,7 +109,8 @@ LINUXKPI_GENSRCS+= \
|
|||
|
||||
LINUXKPI_INCLUDES+= \
|
||||
-I${SYSDIR}/compat/linuxkpi/common/include \
|
||||
-I${SYSDIR}/compat/linuxkpi/dummy/include
|
||||
-I${SYSDIR}/compat/linuxkpi/dummy/include \
|
||||
-include ${SYSDIR}/compat/linuxkpi/common/include/linux/kconfig.h
|
||||
|
||||
CFLAGS+= ${WERROR}
|
||||
CFLAGS+= -D_KERNEL
|
||||
|
|
|
|||
Loading…
Reference in a new issue