time_t time(time_t *tloc) {
__wasi_timestamp_t ts = 0;
-#ifdef __wasilibc_unmodified_upstream // bug fix
-#else
- (void)
-#endif
- __wasi_clock_time_get(__WASI_CLOCK_REALTIME, NSEC_PER_SEC, &ts);
+ (void)__wasi_clock_time_get(__WASI_CLOCK_REALTIME, NSEC_PER_SEC, &ts);
if (tloc != NULL)
*tloc = ts / NSEC_PER_SEC;
return ts / NSEC_PER_SEC;