From: Philip Prindeville Date: Wed, 27 Mar 2024 20:03:00 +0000 (-0600) Subject: strongswan: backport upstream MUSL fix for farp_spoofer.c X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=b20950a51595078952b711c6397ba0e31390ccaf;p=openwrt-packages.git strongswan: backport upstream MUSL fix for farp_spoofer.c Signed-off-by: Philip Prindeville --- diff --git a/net/strongswan/patches/0002-farp_spoofer-Fix-build-with-musl-C-library.patch b/net/strongswan/patches/0002-farp_spoofer-Fix-build-with-musl-C-library.patch new file mode 100644 index 000000000..3328c0e8d --- /dev/null +++ b/net/strongswan/patches/0002-farp_spoofer-Fix-build-with-musl-C-library.patch @@ -0,0 +1,37 @@ +commit 540881627fe8083207f9a2cfd01b931164c7ef4e +Author: Tobias Brunner +Date: Fri Mar 22 10:42:34 2024 +0100 + + farp: Fix build with musl C library + + Same issue as described in the previous commit. + + Fixes: 187c72d1afdc ("dhcp: Port the plugin to FreeBSD/macOS") + +--- a/src/libcharon/plugins/farp/farp_spoofer.c ++++ b/src/libcharon/plugins/farp/farp_spoofer.c +@@ -20,12 +20,14 @@ + + #include + #include ++#include + #include + + #if !defined(__APPLE__) && !defined(__FreeBSD__) + #include +-#include +-#include ++#include ++#include ++#include + #include + #else + #include +@@ -33,7 +35,6 @@ + #include + #endif /* !defined(__APPLE__) && !defined(__FreeBSD__) */ + +-#include + #include + #include + #include