diff options
Diffstat (limited to 'system/include/libc')
-rw-r--r-- | system/include/libc/machine/time.h | 4 | ||||
-rw-r--r-- | system/include/libc/time.h | 9 |
2 files changed, 11 insertions, 2 deletions
diff --git a/system/include/libc/machine/time.h b/system/include/libc/machine/time.h index a296857d..54de2700 100644 --- a/system/include/libc/machine/time.h +++ b/system/include/libc/machine/time.h @@ -2,10 +2,10 @@ #define _MACHTIME_H_ #if defined(__rtems__) -#define _CLOCKS_PER_SEC_ sysconf(_SC_CLK_TCK) +/* XXX Emscripten #define _CLOCKS_PER_SEC_ sysconf(_SC_CLK_TCK) */ #else /* !__rtems__ */ #if defined(__arm__) || defined(__thumb__) -#define _CLOCKS_PER_SEC_ 100 +/* XXX Emscripten #define _CLOCKS_PER_SEC_ 100 */ #endif #endif /* !__rtems__ */ diff --git a/system/include/libc/time.h b/system/include/libc/time.h index bc07d30f..019dd872 100644 --- a/system/include/libc/time.h +++ b/system/include/libc/time.h @@ -41,6 +41,9 @@ struct tm int tm_wday; int tm_yday; int tm_isdst; + /* XXX Emscripten */ + int tm_gmtoff; + char *tm_zone; }; clock_t _EXFUN(clock, (void)); @@ -253,6 +256,12 @@ int _EXFUN(clock_getenable_attr, (clockid_t clock_id, int *attr)); #endif /* _POSIX_CPUTIME or _POSIX_THREAD_CPUTIME */ +/* XXX Emscripten */ + +int _EXFUN(stime, (time_t *t)); +time_t _EXFUN(timegm, (struct tm *t)); +int _EXFUN(dysize, (int year)); + #ifdef __cplusplus } #endif |