From d17e57310fbe6be0e060734ed4942d2a4c6d61b2 Mon Sep 17 00:00:00 2001 From: smlng Date: Tue, 20 Dec 2016 19:40:55 +0100 Subject: [PATCH] shell: fix strtok_r compile error --- sys/shell/commands/sc_gnrc_6ctx.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/shell/commands/sc_gnrc_6ctx.c b/sys/shell/commands/sc_gnrc_6ctx.c index 07c3fccffb..3ea67493bf 100644 --- a/sys/shell/commands/sc_gnrc_6ctx.c +++ b/sys/shell/commands/sc_gnrc_6ctx.c @@ -12,6 +12,8 @@ * @file */ +/* Required for strtok_r in string.h, when building with -std=c99 */ +#define _DEFAULT_SOURCE 1 #include #include #include