summaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
Diffstat (limited to 'components')
-rw-r--r--components/libc/compilers/common/sys/mman.h2
-rw-r--r--components/libc/compilers/common/sys/time.h13
-rw-r--r--components/libc/compilers/common/time.c2
3 files changed, 15 insertions, 2 deletions
diff --git a/components/libc/compilers/common/sys/mman.h b/components/libc/compilers/common/sys/mman.h
index a9235d61f0..2da2ddf716 100644
--- a/components/libc/compilers/common/sys/mman.h
+++ b/components/libc/compilers/common/sys/mman.h
@@ -16,7 +16,7 @@ extern "C" {
#endif
#include <sys/types.h>
-
+
#define MAP_FAILED ((void *) -1)
#define MAP_SHARED 0x01
diff --git a/components/libc/compilers/common/sys/time.h b/components/libc/compilers/common/sys/time.h
index 24da0b6c77..be453ba276 100644
--- a/components/libc/compilers/common/sys/time.h
+++ b/components/libc/compilers/common/sys/time.h
@@ -20,6 +20,19 @@ extern "C" {
#ifndef _TIMEVAL_DEFINED
#define _TIMEVAL_DEFINED
+
+#define DST_NONE 0 /* not on dst */
+#define DST_USA 1 /* USA style dst */
+#define DST_AUST 2 /* Australian style dst */
+#define DST_WET 3 /* Western European dst */
+#define DST_MET 4 /* Middle European dst */
+#define DST_EET 5 /* Eastern European dst */
+#define DST_CAN 6 /* Canada */
+#define DST_GB 7 /* Great Britain and Eire */
+#define DST_RUM 8 /* Rumania */
+#define DST_TUR 9 /* Turkey */
+#define DST_AUSTALT 10 /* Australian style with shift in 1986 */
+
/*
* Structure returned by gettimeofday(2) system call,
* and used in other calls.
diff --git a/components/libc/compilers/common/time.c b/components/libc/compilers/common/time.c
index 50fbe0d5cc..8c32ee1ed0 100644
--- a/components/libc/compilers/common/time.c
+++ b/components/libc/compilers/common/time.c
@@ -424,7 +424,7 @@ int gettimeofday(struct timeval *tv, struct timezone *tz)
*/
if(tz != RT_NULL)
{
- tz->tz_dsttime = 0;
+ tz->tz_dsttime = DST_NONE;
tz->tz_minuteswest = -(RT_LIBC_FIXED_TIMEZONE * 60);
}