diff mbox

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

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

Commit Message

Mike Holmes Feb. 27, 2015, 2:52 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 f0b47cb..d062a72 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>