summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2024-06-22 10:06:47 -0400
committerSolomon Peachy <pizza@shaftnet.org>2024-06-22 10:06:47 -0400
commita1c526f35fa6b6063bb3dd34a8392ad163d8a99e (patch)
treedbddc2a18bca2d5a6836deb5472cc5d3e7057eed
parent231797dfa83c9418506f4bbfb060dae2a19ad473 (diff)
downloadrockbox-a1c526f35fa6b6063bb3dd34a8392ad163d8a99e.tar.gz
rockbox-a1c526f35fa6b6063bb3dd34a8392ad163d8a99e.zip
lua: Fix Windows Simulator build.
(Basically, use the OS-provided gmtime() instead. It's pulled in via another header we need..) Change-Id: Ia09609a3a38dc58133a4a209cc803f0d9d0802f4
-rw-r--r--apps/plugins/lua/rockaux.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/plugins/lua/rockaux.c b/apps/plugins/lua/rockaux.c
index c4af2b3e96..c9066e5610 100644
--- a/apps/plugins/lua/rockaux.c
+++ b/apps/plugins/lua/rockaux.c
@@ -202,11 +202,13 @@ int strcoll(const char * str1, const char * str2)
202 return rb->strcmp(str1, str2); 202 return rb->strcmp(str1, str2);
203} 203}
204 204
205#ifndef _WIN32
205struct tm * gmtime(const time_t *timep) 206struct tm * gmtime(const time_t *timep)
206{ 207{
207 static struct tm time; 208 static struct tm time;
208 return rb->gmtime_r(timep, &time); 209 return rb->gmtime_r(timep, &time);
209} 210}
211#endif
210 212
211int get_current_path(lua_State *L, int level) 213int get_current_path(lua_State *L, int level)
212{ 214{