diff options
author | László Langó <llango.u-szeged@partner.samsung.com> | 2016-03-02 15:56:28 +0100 |
---|---|---|
committer | László Langó <llango.u-szeged@partner.samsung.com> | 2016-03-08 12:13:55 +0100 |
commit | 9bf1ecc677fd6be0eb8508c4a047e1d5aee6e918 (patch) | |
tree | 6ac3701458d9ae6e33d9382c2133023030150d47 /jerry-libc | |
parent | e926aa7d69b22e3169801a55ca5e28238713cbce (diff) |
Disable date object related system calls by default
Use DATE_SYS_CALLS=ON for make target to enable the
date related system calls. Also fix some minor issues.
Related issue: #923
JerryScript-DCO-1.0-Signed-off-by: László Langó llango.u-szeged@partner.samsung.com
Diffstat (limited to 'jerry-libc')
-rw-r--r-- | jerry-libc/include/sys/time.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/jerry-libc/include/sys/time.h b/jerry-libc/include/sys/time.h index e952e3e3..986adea2 100644 --- a/jerry-libc/include/sys/time.h +++ b/jerry-libc/include/sys/time.h @@ -31,6 +31,15 @@ struct timeval unsigned long tv_usec; /**< microseconds */ }; +/** + * Timezone structure + */ +struct timezone +{ + int tz_minuteswest; /**< minutes west of Greenwich */ + int tz_dsttime; /**< type of DST correction */ +}; + int gettimeofday (void *tp, void *tzp); #ifdef __cplusplus |