aboutsummaryrefslogtreecommitdiff
path: root/jerry-libc
diff options
context:
space:
mode:
authorLászló Langó <llango.u-szeged@partner.samsung.com>2016-03-02 15:56:28 +0100
committerLászló Langó <llango.u-szeged@partner.samsung.com>2016-03-08 12:13:55 +0100
commit9bf1ecc677fd6be0eb8508c4a047e1d5aee6e918 (patch)
tree6ac3701458d9ae6e33d9382c2133023030150d47 /jerry-libc
parente926aa7d69b22e3169801a55ca5e28238713cbce (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.h9
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