diff options
author | Tobias Brunner <tobias@strongswan.org> | 2014-02-19 16:09:41 +0100 |
---|---|---|
committer | Tobias Brunner <tobias@strongswan.org> | 2014-02-19 16:11:47 +0100 |
commit | ab13364c65184838415af76f301d40b0c15bc870 (patch) | |
tree | 6532103dc5cb1640f3f635f64a40551e88c44ac0 /src/libcharon/config | |
parent | 09417da49cff839fead23a60375bc50bd94a49d3 (diff) | |
download | strongswan-ab13364c65184838415af76f301d40b0c15bc870.tar.bz2 strongswan-ab13364c65184838415af76f301d40b0c15bc870.tar.xz |
uclibc only defines strndup(3) if _GNU_SOURCE is defined
References #516.
Diffstat (limited to 'src/libcharon/config')
-rw-r--r-- | src/libcharon/config/ike_cfg.c | 6 |
1 files changed, 3 insertions, 3 deletions
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 <string.h> -#include <daemon.h> +#include "ike_cfg.h" +#include <daemon.h> ENUM(ike_version_names, IKE_ANY, IKEV2, "IKEv1/2", |