summaryrefslogtreecommitdiff
path: root/apps/plugins/lua/rockaux.c
diff options
context:
space:
mode:
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;