[PATCH] shell: Fix warning visible with latest Newlib

Sebastian Huber sebastian.huber at embedded-brains.de
Fri Apr 8 06:42:43 UTC 2016


---
 cpukit/libmisc/shell/main_date.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/cpukit/libmisc/shell/main_date.c b/cpukit/libmisc/shell/main_date.c
index 9b970a6..cae403b 100644
--- a/cpukit/libmisc/shell/main_date.c
+++ b/cpukit/libmisc/shell/main_date.c
@@ -16,10 +16,13 @@
 #include "config.h"
 #endif
 
+#define _DEFAULT_SOURCE
+#define _XOPEN_SOURCE
 #include <stdio.h>
 #include <unistd.h>
 #include <string.h>
 #include <errno.h>
+#include <time.h>
 
 #include <rtems.h>
 #include <rtems/shell.h>
-- 
1.8.4.5



More information about the devel mailing list