libreswan: fix compilation with Linux 4.14
authorEneas U de Queiroz <redacted>
Tue, 12 May 2020 12:10:38 +0000 (09:10 -0300)
committerEneas U de Queiroz <redacted>
Tue, 12 May 2020 12:30:30 +0000 (09:30 -0300)
According to a comment in programs/pluto/kernel_xfrm_interface.c:177:

* IFLA_XFRM_IF_ID was added to mainline kernel 4.19 linux/if_link.h
  with older kernel headers 'make USE_XFRM_INTERFACE_IFLA_HEADER=true'

Signed-off-by: Eneas U de Queiroz <redacted>
net/libreswan/Makefile

index 2752fd997ebee1f94647c0fbf3ae78cd830ffbcf..ddc930431f8e755ca0b74ed7c3dc55dd0d302c32 100644 (file)
@@ -81,6 +81,10 @@ MAKE_FLAGS+= \
     FINALRUNDIR="/var/run/pluto" \
     ARCH="$(LINUX_KARCH)" \
 
+ifdef CONFIG_LINUX_4_14
+       MAKE_FLAGS+= USE_XFRM_INTERFACE_IFLA_HEADER=true
+endif
+
 define Build/Prepare
        $(call Build/Prepare/Default)
        $(SED) 's,include $$$$(top_srcdir)/mk/manpages.mk,,g' \
git clone https://git.99rst.org/PROJECT