From a1c526f35fa6b6063bb3dd34a8392ad163d8a99e Mon Sep 17 00:00:00 2001 From: Solomon Peachy Date: Sat, 22 Jun 2024 10:06:47 -0400 Subject: lua: Fix Windows Simulator build. (Basically, use the OS-provided gmtime() instead. It's pulled in via another header we need..) Change-Id: Ia09609a3a38dc58133a4a209cc803f0d9d0802f4 --- apps/plugins/lua/rockaux.c | 2 ++ 1 file changed, 2 insertions(+) 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) return rb->strcmp(str1, str2); } +#ifndef _WIN32 struct tm * gmtime(const time_t *timep) { static struct tm time; return rb->gmtime_r(timep, &time); } +#endif int get_current_path(lua_State *L, int level) { -- cgit v1.2.3