diff options
author | Solomon Peachy <pizza@shaftnet.org> | 2024-06-22 10:06:47 -0400 |
---|---|---|
committer | Solomon Peachy <pizza@shaftnet.org> | 2024-06-22 10:06:47 -0400 |
commit | a1c526f35fa6b6063bb3dd34a8392ad163d8a99e (patch) | |
tree | dbddc2a18bca2d5a6836deb5472cc5d3e7057eed | |
parent | 231797dfa83c9418506f4bbfb060dae2a19ad473 (diff) | |
download | rockbox-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.c | 2 |
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 | ||
205 | struct tm * gmtime(const time_t *timep) | 206 | struct 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 | ||
211 | int get_current_path(lua_State *L, int level) | 213 | int get_current_path(lua_State *L, int level) |
212 | { | 214 | { |