diff mbox

[v5,3/8] example: odp_ipsec: fix c99 storage size of ‘ifr’ isn’t known

Message ID 1425048757-28438-3-git-send-email-mike.holmes@linaro.org
State Accepted
Commit 3b8591d544162ea6ac2b869e521bb884ed066d52
Headers show

Commit Message

Mike Holmes Feb. 27, 2015, 2:52 p.m. UTC
odp_ipsec.c:233:15: error: storage size of ‘ifr’ isn’t known
  struct ifreq ifr;

Signed-off-by: Mike Holmes <mike.holmes@linaro.org>
---
 example/ipsec/odp_ipsec.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox

Patch

diff --git a/example/ipsec/odp_ipsec.c b/example/ipsec/odp_ipsec.c
index 1aa68db..e53a6ec 100644
--- a/example/ipsec/odp_ipsec.c
+++ b/example/ipsec/odp_ipsec.c
@@ -10,6 +10,7 @@ 
  * @example odp_example_ipsec.c  ODP basic packet IO cross connect with IPsec test application
  */
 
+#define _BSD_SOURCE
 #include <stdlib.h>
 #include <string.h>
 #include <getopt.h>