diff options
author | Mike Holmes <mike.holmes@linaro.org> | 2015-02-27 09:52:34 -0500 |
---|---|---|
committer | Maxim Uvarov <maxim.uvarov@linaro.org> | 2015-02-27 18:28:00 +0300 |
commit | af1d5a07365400b689c2b82945cb79ae2dd0c7e5 (patch) | |
tree | 370e55341b267bb90f9a3b72b60b87a1500c36d7 /example | |
parent | 98c289c443915f79fcf43beacdbc6766a710df09 (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')
-rw-r--r-- | example/ipsec/odp_ipsec_stream.c | 5 | ||||
-rw-r--r-- | example/l2fwd/odp_l2fwd.c | 3 |
2 files changed, 7 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); 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> |