[rtems commit] shell: Fix warning visible with latest Newlib
Sebastian Huber
sebh at rtems.org
Tue Apr 12 05:57:43 UTC 2016
Module: rtems
Branch: master
Commit: f2ffd646fa483c02284e0b01480dfe487992203d
Changeset: http://git.rtems.org/rtems/commit/?id=f2ffd646fa483c02284e0b01480dfe487992203d
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Fri Apr 8 08:42:15 2016 +0200
shell: Fix warning visible with latest Newlib
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>
More information about the vc
mailing list