[PATCH v2] shell: Fix warning visible with latest Newlib
Sebastian Huber
sebastian.huber at embedded-brains.de
Fri Apr 8 07:00:09 UTC 2016
Works also with previous Newlib versions.
---
cpukit/libmisc/shell/main_date.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/cpukit/libmisc/shell/main_date.c b/cpukit/libmisc/shell/main_date.c
index 9b970a6..6070ff0 100644
--- a/cpukit/libmisc/shell/main_date.c
+++ b/cpukit/libmisc/shell/main_date.c
@@ -16,10 +16,12 @@
#include "config.h"
#endif
+#define _GNU_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