summaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
authorMichael Pavone <pavone@retrodev.com>2017-01-02 16:33:03 -0800
committerMichael Pavone <pavone@retrodev.com>2017-01-02 16:33:03 -0800
commit7d1a9bbb9b343e128cbfbc3567ab329f22edbd5a (patch)
tree713ed190b8c0211ea4f6de740500878929f7799c /util.c
parent04869663109a86188677a5e65d8b68d6850a5c27 (diff)
Old uncommitted fix for Android build
Diffstat (limited to 'util.c')
-rw-r--r--util.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/util.c b/util.c
index 6811b6d..2e36b33 100644
--- a/util.c
+++ b/util.c
@@ -479,7 +479,8 @@ time_t get_modification_time(char *path)
#ifdef __APPLE__
return st.st_mtimespec.tv_sec;
#else
- return st.st_mtim.tv_sec;
+ //Android's Bionic doesn't support the new style so we'll use the old one instead
+ return st.st_mtime;
#endif
}