From b20950a51595078952b711c6397ba0e31390ccaf Mon Sep 17 00:00:00 2001 From: Philip Prindeville Date: Wed, 27 Mar 2024 14:03:00 -0600 Subject: [PATCH] strongswan: backport upstream MUSL fix for farp_spoofer.c Signed-off-by: Philip Prindeville --- ...poofer-Fix-build-with-musl-C-library.patch | 37 +++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 net/strongswan/patches/0002-farp_spoofer-Fix-build-with-musl-C-library.patch 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 0000000000..3328c0e8de --- /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 -- 2.30.2