aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstrongswan/plugins/sshkey/sshkey_builder.c
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2014-02-19 15:48:06 +0100
committerTobias Brunner <tobias@strongswan.org>2014-02-19 15:55:20 +0100
commit09417da49cff839fead23a60375bc50bd94a49d3 (patch)
tree8cf682996770cd9d4778efbf300377be82d66617 /src/libstrongswan/plugins/sshkey/sshkey_builder.c
parent6122bfd2eb56e5f0b4e41b0c99ee75d605ea911b (diff)
downloadstrongswan-09417da49cff839fead23a60375bc50bd94a49d3.tar.bz2
strongswan-09417da49cff839fead23a60375bc50bd94a49d3.tar.xz
sshkey: uclibc only defines fmemopen(3) if _GNU_SOURCE is defined
Fixes #516.
Diffstat (limited to 'src/libstrongswan/plugins/sshkey/sshkey_builder.c')
-rw-r--r--src/libstrongswan/plugins/sshkey/sshkey_builder.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libstrongswan/plugins/sshkey/sshkey_builder.c b/src/libstrongswan/plugins/sshkey/sshkey_builder.c
index 569b0b738..652663108 100644
--- a/src/libstrongswan/plugins/sshkey/sshkey_builder.c
+++ b/src/libstrongswan/plugins/sshkey/sshkey_builder.c
@@ -13,6 +13,7 @@
* for more details.
*/
+#define _GNU_SOURCE /* for fmemopen() */
#include <unistd.h>
#include <stdio.h>
#include <errno.h>