From ab13364c65184838415af76f301d40b0c15bc870 Mon Sep 17 00:00:00 2001 From: Tobias Brunner Date: Wed, 19 Feb 2014 16:09:41 +0100 Subject: uclibc only defines strndup(3) if _GNU_SOURCE is defined References #516. --- src/libcharon/config/ike_cfg.c | 6 +++--- src/libcharon/sa/xauth/xauth_manager.c | 3 +++ 2 files changed, 6 insertions(+), 3 deletions(-) (limited to 'src/libcharon') diff --git a/src/libcharon/config/ike_cfg.c b/src/libcharon/config/ike_cfg.c index cb6f6ca0e..c74daa0cc 100644 --- a/src/libcharon/config/ike_cfg.c +++ b/src/libcharon/config/ike_cfg.c @@ -14,12 +14,12 @@ * for more details. */ -#include "ike_cfg.h" - +#define _GNU_SOURCE /* for stdndup() */ #include -#include +#include "ike_cfg.h" +#include ENUM(ike_version_names, IKE_ANY, IKEV2, "IKEv1/2", diff --git a/src/libcharon/sa/xauth/xauth_manager.c b/src/libcharon/sa/xauth/xauth_manager.c index 17eecc2c9..3aabe7eae 100644 --- a/src/libcharon/sa/xauth/xauth_manager.c +++ b/src/libcharon/sa/xauth/xauth_manager.c @@ -13,6 +13,9 @@ * for more details. */ +#define _GNU_SOURCE /* for stdndup() */ +#include + #include "xauth_manager.h" #include -- cgit v1.2.3