@@ -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);
@@ -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>
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(-)