summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2018-12-19 13:12:30 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2018-12-19 13:12:30 +0900
commit624b126fb6b06253abff0eea7899ec876b2358e6 (patch)
tree767174daa51e948222ff4dab44b0df556c732572
parent11071b9ab11160c6708a3ac6863b1170776f15da (diff)
downloadmruby-624b126fb6b06253abff0eea7899ec876b2358e6.tar.gz
mruby-624b126fb6b06253abff0eea7899ec876b2358e6.zip
Added Android Hack to `time.c`.
Android bionic defines `TIME_UTC` but does not provide `timespec_get`.
-rw-r--r--mrbgems/mruby-time/src/time.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mrbgems/mruby-time/src/time.c b/mrbgems/mruby-time/src/time.c
index cfd51ac63..4217b897f 100644
--- a/mrbgems/mruby-time/src/time.c
+++ b/mrbgems/mruby-time/src/time.c
@@ -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) {