diff options
Diffstat (limited to 'system/include/libc/sys/time.h')
-rw-r--r-- | system/include/libc/sys/time.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/system/include/libc/sys/time.h b/system/include/libc/sys/time.h index d48839f6..2bd2421e 100644 --- a/system/include/libc/sys/time.h +++ b/system/include/libc/sys/time.h @@ -7,6 +7,7 @@ #include <_ansi.h> #include <sys/types.h> +#include <time.h> /* XXX Emscripten */ #ifdef __cplusplus extern "C" { @@ -40,7 +41,7 @@ struct itimerval { }; /* BSD time macros used by RTEMS code */ -#if defined (__rtems__) || defined (__CYGWIN__) +#if defined (__rtems__) || defined (__CYGWIN__) || defined (EMSCRIPTEN) /* Convenience macros for operations on timevals. NOTE: `timercmp' does not work for >= or <=. */ |