From 73f2bd9c4653498e029fcb857f43469910e886d4 Mon Sep 17 00:00:00 2001 From: William Wilgus Date: Sun, 28 Oct 2018 07:07:10 -0400 Subject: Lua remove gmtime.c use rb_plugin version instead Change-Id: Ia6d47a13ec8ae407661a78c56513ac0c164216da --- apps/plugins/lua/rockaux.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'apps/plugins/lua/rockaux.c') diff --git a/apps/plugins/lua/rockaux.c b/apps/plugins/lua/rockaux.c index b51364f718..ba3a37343b 100644 --- a/apps/plugins/lua/rockaux.c +++ b/apps/plugins/lua/rockaux.c @@ -73,6 +73,12 @@ int strcoll(const char * str1, const char * str2) return rb->strcmp(str1, str2); } +struct tm * gmtime(const time_t *timep) +{ + static struct tm time; + return rb->gmtime_r(timep, &time); +} + int get_current_path(lua_State *L, int level) { lua_Debug ar; -- cgit v1.2.3