diff mbox

[v2,02/13] example: odp_generator: fix c99 implicit declaration

Message ID 1424895578-24971-3-git-send-email-mike.holmes@linaro.org
State New
Headers show

Commit Message

Mike Holmes Feb. 25, 2015, 8:19 p.m. UTC
Signed-off-by: Mike Holmes <mike.holmes@linaro.org>
---
 example/generator/odp_generator.c | 3 +++
 1 file changed, 3 insertions(+)
diff mbox

Patch

diff --git a/example/generator/odp_generator.c b/example/generator/odp_generator.c
index f3a315d..3870fd1 100644
--- a/example/generator/odp_generator.c
+++ b/example/generator/odp_generator.c
@@ -10,6 +10,9 @@ 
  * @example odp_generator.c ODP loopback demo application
  */
 
+/** enable strtok */
+#define _POSIX_C_SOURCE 200112L
+
 #include <time.h>
 #include <stdlib.h>
 #include <string.h>