aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMartin Willi <martin@strongswan.org>2008-04-24 13:49:20 +0000
committerMartin Willi <martin@strongswan.org>2008-04-24 13:49:20 +0000
commit5e6bbf4f772915fa98e0bc47b802ef84d02746f8 (patch)
tree39ffdd1548b56e160fe181a6756e85fbed7dd2e8 /src
parentc624081a7ff0bc6ce1645585ea909b83879bee86 (diff)
downloadstrongswan-5e6bbf4f772915fa98e0bc47b802ef84d02746f8.tar.bz2
strongswan-5e6bbf4f772915fa98e0bc47b802ef84d02746f8.tar.xz
added _GNU_SOURCE and limits.h to build against glibc-2.8
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>