summaryrefslogtreecommitdiff
path: root/apps/plugins/lua/rockaux.c
diff options
context:
space:
mode:
authorWilliam Wilgus <me.theuser@yahoo.com>2018-10-28 07:07:10 -0400
committerWilliam Wilgus <me.theuser@yahoo.com>2018-10-28 07:15:29 -0400
commit73f2bd9c4653498e029fcb857f43469910e886d4 (patch)
tree210eb365d070b710a444d432eb43f4f137913563 /apps/plugins/lua/rockaux.c
parent5449500a67e39a5c89f233b075589fd57111e177 (diff)
downloadrockbox-73f2bd9c4653498e029fcb857f43469910e886d4.tar.gz
rockbox-73f2bd9c4653498e029fcb857f43469910e886d4.zip
Lua remove gmtime.c use rb_plugin version instead
Change-Id: Ia6d47a13ec8ae407661a78c56513ac0c164216da
Diffstat (limited to 'apps/plugins/lua/rockaux.c')
-rw-r--r--apps/plugins/lua/rockaux.c6
1 files changed, 6 insertions, 0 deletions
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)
73 return rb->strcmp(str1, str2); 73 return rb->strcmp(str1, str2);
74} 74}
75 75
76struct tm * gmtime(const time_t *timep)
77{
78 static struct tm time;
79 return rb->gmtime_r(timep, &time);
80}
81
76int get_current_path(lua_State *L, int level) 82int get_current_path(lua_State *L, int level)
77{ 83{
78 lua_Debug ar; 84 lua_Debug ar;