diff mbox

[v4,5/7] example: odp_ipsec_stream: fix c99 unknown type name ‘uint’

Message ID 1424968984-30171-6-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_stream.c:190:2: error: unknown type name ‘uint’
  uint i;

Signed-off-by: Mike Holmes <mike.holmes@linaro.org>
---
 example/ipsec/odp_ipsec_stream.c | 5 ++++-
 example/l2fwd/odp_l2fwd.c        | 3 +++
 2 files changed, 7 insertions(+), 1 deletion(-)
diff mbox

Patch

diff --git a/example/ipsec/odp_ipsec_stream.c b/example/ipsec/odp_ipsec_stream.c
index 788432d..ed07355 100644
--- a/example/ipsec/odp_ipsec_stream.c
+++ b/example/ipsec/odp_ipsec_stream.c
@@ -4,6 +4,9 @@ 
  * SPDX-License-Identifier:     BSD-3-Clause
  */
 
+/* enable strtok */
+#define _POSIX_C_SOURCE 200112L
+
 #include <stdlib.h>
 #include <string.h>
 
@@ -184,7 +187,7 @@  odp_packet_t create_ipv4_packet(stream_db_entry_t *stream,
 	odph_esphdr_t *esp = NULL;
 	odph_icmphdr_t *icmp;
 	stream_pkt_hdr_t *test;
-	uint i;
+	unsigned i;
 
 	/* Get packet */
 	pkt = odp_packet_alloc(pkt_pool, 0);
diff --git a/example/l2fwd/odp_l2fwd.c b/example/l2fwd/odp_l2fwd.c
index 0326a3c..b0a93fa 100644
--- a/example/l2fwd/odp_l2fwd.c
+++ b/example/l2fwd/odp_l2fwd.c
@@ -10,6 +10,9 @@ 
  * @example odp_l2fwd.c  ODP basic forwarding application
  */
 
+/** enable strtok */
+#define _POSIX_C_SOURCE 200112L
+
 #include <stdlib.h>
 #include <string.h>
 #include <getopt.h>