aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/charon/network/socket-raw.c3
-rw-r--r--src/charon/network/socket.c3
-rw-r--r--src/charon/plugins/stroke/stroke_cred.c1
3 files changed, 7 insertions, 0 deletions
diff --git a/src/charon/network/socket-raw.c b/src/charon/network/socket-raw.c
index 72ee6bbca..f10222dee 100644
--- a/src/charon/network/socket-raw.c
+++ b/src/charon/network/socket-raw.c
@@ -17,6 +17,9 @@
* $Id$
*/
+/* for struct in6_pktinfo */
+#define _GNU_SOURCE
+
#include <pthread.h>
#include <sys/types.h>
#include <sys/socket.h>
diff --git a/src/charon/network/socket.c b/src/charon/network/socket.c
index cedfc0890..2b854c6e6 100644
--- a/src/charon/network/socket.c
+++ b/src/charon/network/socket.c
@@ -17,6 +17,9 @@
* $Id$
*/
+/* for struct in6_pktinfo */
+#define _GNU_SOURCE
+
#include <pthread.h>
#include <sys/types.h>
#include <sys/socket.h>
diff --git a/src/charon/plugins/stroke/stroke_cred.c b/src/charon/plugins/stroke/stroke_cred.c
index 1b8498ab5..9467248f0 100644
--- a/src/charon/plugins/stroke/stroke_cred.c
+++ b/src/charon/plugins/stroke/stroke_cred.c
@@ -19,6 +19,7 @@
#include "stroke_shared_key.h"
#include <sys/stat.h>
+#include <limits.h>
#include <credentials/certificates/x509.h>
#include <credentials/certificates/crl.h>