Added Android Hack to time.c.

Android bionic defines `TIME_UTC` but does not provide `timespec_get`.
This commit is contained in:
Yukihiro "Matz" Matsumoto
2018-12-19 13:12:30 +09:00
parent 11071b9ab1
commit 624b126fb6
+1 -1
View File
@@ -296,7 +296,7 @@ current_mrb_time(mrb_state *mrb)
struct mrb_time *tm;
tm = (struct mrb_time *)mrb_malloc(mrb, sizeof(*tm));
#if defined(TIME_UTC)
#if defined(TIME_UTC) && !defined(__ANDROID__)
{
struct timespec ts;
if (timespec_get(&ts, TIME_UTC) == 0) {