aboutsummaryrefslogtreecommitdiffstats
path: root/src/libcharon/config
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2014-02-19 16:09:41 +0100
committerTobias Brunner <tobias@strongswan.org>2014-02-19 16:11:47 +0100
commitab13364c65184838415af76f301d40b0c15bc870 (patch)
tree6532103dc5cb1640f3f635f64a40551e88c44ac0 /src/libcharon/config
parent09417da49cff839fead23a60375bc50bd94a49d3 (diff)
downloadstrongswan-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.c6
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",