aboutsummaryrefslogtreecommitdiff
path: root/example/ipsec
diff options
context:
space:
mode:
authorMike Holmes <mike.holmes@linaro.org>2015-02-27 09:52:34 -0500
committerMaxim Uvarov <maxim.uvarov@linaro.org>2015-02-27 18:28:00 +0300
commitaf1d5a07365400b689c2b82945cb79ae2dd0c7e5 (patch)
tree370e55341b267bb90f9a3b72b60b87a1500c36d7 /example/ipsec
parent98c289c443915f79fcf43beacdbc6766a710df09 (diff)
example: odp_ipsec_stream: fix c99 unknown type name ‘uint’
odp_ipsec_stream.c:190:2: error: unknown type name ‘uint’ uint i; Signed-off-by: Mike Holmes <mike.holmes@linaro.org> Reviewed-and-tested-by: Maxim Uvarov <maxim.uvarov@linaro.org> Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
Diffstat (limited to 'example/ipsec')
-rw-r--r--example/ipsec/odp_ipsec_stream.c5
1 files changed, 4 insertions, 1 deletions
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);