package/pppd: fix build with kernel >= 5.15
Fix the following build failure with kernel >= 5.15: sys-linux.c:148:10: fatal error: linux/ipx.h: No such file or directory 148 | #include <linux/ipx.h> | ^~~~~~~~~~~~~ This hook could be removed as soon as a new pppd version is released: https://github.com/ppp-project/ppp/pull/326 Fixes: - http://autobuild.buildroot.org/results/5a7f89e5178735f4d3e3f3360f0feb263f6ac431 Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
parent
d9721168b3
commit
c94dd92c0f
@ -57,6 +57,13 @@ ifeq ($(BR2_PACKAGE_PPPD_OVERWRITE_RESOLV_CONF),y)
|
||||
PPPD_POST_EXTRACT_HOOKS += PPPD_SET_RESOLV_CONF
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_15),y)
|
||||
define PPPD_DROP_IPX
|
||||
$(SED) 's/-DIPX_CHANGE//' $(PPPD_DIR)/pppd/Makefile.linux
|
||||
endef
|
||||
PPPD_POST_EXTRACT_HOOKS += PPPD_DROP_IPX
|
||||
endif
|
||||
|
||||
define PPPD_CONFIGURE_CMDS
|
||||
$(SED) 's/FILTER=y/#FILTER=y/' $(PPPD_DIR)/pppd/Makefile.linux
|
||||
$(SED) 's/ifneq ($$(wildcard \/usr\/include\/pcap-bpf.h),)/ifdef FILTER/' $(PPPD_DIR)/*/Makefile.linux
|
||||
|
Loading…
Reference in New Issue
Block a user