From a0a486300a9abcc589d7065767afc3555cbee508 Mon Sep 17 00:00:00 2001 From: Max Desiatov Date: Sat, 7 Aug 2021 13:36:17 +0100 Subject: [PATCH] Add `|| TARGET_OS_WASI` to ifdef in `uuid.c` This makes `nanotime` implementation available for Wasm/WASI. --- Sources/UUID/uuid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/UUID/uuid.c b/Sources/UUID/uuid.c index 6115754d71..9be80052d2 100644 --- a/Sources/UUID/uuid.c +++ b/Sources/UUID/uuid.c @@ -61,7 +61,7 @@ static inline void nanotime(struct timespec *tv) { tv->tv_nsec = now - (tv->tv_sec * 1000000000); } -#elif TARGET_OS_LINUX || TARGET_OS_BSD +#elif TARGET_OS_LINUX || TARGET_OS_BSD || TARGET_OS_WASI #include static inline void nanotime(struct timespec *tv) {