From fbbab2e7a7fbae6ce7e56c9d51c55b2a0b785ef9 Mon Sep 17 00:00:00 2001 From: Hans Dedecker Date: Tue, 9 Aug 2016 14:55:04 +0200 Subject: [PATCH] strongswan: Include musl.h after _GNU_SOURCE define musl.h was included before _GNU_SOURCE in 101-musl-fixes patch leading to compilation issue on gcc (RTLD_DEFAULT not being defined in dlfcn.h due to __USE_GNU not being set). As described in the feature test macro man page feature macro can be defined in the source code but need to be defined before including any headers. Signed-off-by: Hans Dedecker --- net/strongswan/patches/101-musl-fixes.patch | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/net/strongswan/patches/101-musl-fixes.patch b/net/strongswan/patches/101-musl-fixes.patch index ff7afa4eda..cbb6c047d1 100644 --- a/net/strongswan/patches/101-musl-fixes.patch +++ b/net/strongswan/patches/101-musl-fixes.patch @@ -52,15 +52,14 @@ +#undef encrypt --- a/src/libcharon/plugins/kernel_netlink/kernel_netlink_ipsec.c +++ b/src/libcharon/plugins/kernel_netlink/kernel_netlink_ipsec.c -@@ -18,6 +18,8 @@ - * for more details. +@@ -19,6 +19,7 @@ */ -+#include -+ #define _GNU_SOURCE ++#include #include #include + #include --- a/src/libcharon/plugins/kernel_netlink/kernel_netlink_net.c +++ b/src/libcharon/plugins/kernel_netlink/kernel_netlink_net.c @@ -37,6 +37,8 @@ -- 2.30.2