diff mbox

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

Message ID 1424968984-30171-4-git-send-email-mike.holmes@linaro.org
State Superseded
Headers show

Commit Message

Mike Holmes Feb. 26, 2015, 4:43 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>