mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Added Android Hack to time.c.
Android bionic defines `TIME_UTC` but does not provide `timespec_get`.
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user