1
0
mirror of https://github.com/janet-lang/janet synced 2025-11-26 12:14:49 +00:00

Address compilation warnings and errors.

This commit is contained in:
Calvin Rose
2020-07-03 12:25:24 -05:00
parent 55cf9f5e1c
commit 6ea530cc48
2 changed files with 4 additions and 1 deletions

View File

@@ -100,6 +100,9 @@ void janet_core_cfuns(JanetTable *env, const char *regprefix, const JanetReg *cf
/* Clock gettime */
#if !defined(JANET_REDUCED_OS) || !defined(JANET_SINGLE_THREADED)
#include <time.h>
#ifndef JANET_WINDOWS
#include <sys/time.h>
#endif
#define JANET_GETTIME
int janet_gettime(struct timespec *spec);
#endif