added _GNU_SOURCE and limits.h to build against glibc-2.8
authorMartin Willi <martin@strongswan.org>
Thu, 24 Apr 2008 13:49:20 +0000 (13:49 -0000)
committerMartin Willi <martin@strongswan.org>
Thu, 24 Apr 2008 13:49:20 +0000 (13:49 -0000)
src/charon/network/socket-raw.c
src/charon/network/socket.c
src/charon/plugins/stroke/stroke_cred.c

index 72ee6bb..f10222d 100644 (file)
@@ -17,6 +17,9 @@
  * $Id$
  */
 
+/* for struct in6_pktinfo */
+#define _GNU_SOURCE
+
 #include <pthread.h>
 #include <sys/types.h>
 #include <sys/socket.h>
index cedfc08..2b854c6 100644 (file)
@@ -17,6 +17,9 @@
  * $Id$
  */
 
+/* for struct in6_pktinfo */
+#define _GNU_SOURCE
+
 #include <pthread.h>
 #include <sys/types.h>
 #include <sys/socket.h>
index 1b8498a..9467248 100644 (file)
@@ -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>