diff options
Diffstat (limited to 'src/runtime')
-rw-r--r-- | src/runtime/rt_stdlib.C | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/runtime/rt_stdlib.C b/src/runtime/rt_stdlib.C index ec92badc6..ba1bc347a 100644 --- a/src/runtime/rt_stdlib.C +++ b/src/runtime/rt_stdlib.C @@ -23,6 +23,7 @@ #include <stdlib.h> #include <runtime/interface.h> #include <string.h> +#include <sys/time.h> void* malloc(size_t s) { @@ -54,3 +55,8 @@ void* calloc(size_t num, size_t size) return mem; } + +void nanosleep( uint64_t sec, uint64_t nsec ) +{ + g_hostInterfaces->sleep(sec,nsec); +} |