> right, indeed gmtime_r/localtime_r would fall under LUA_USE_POSIX If those have the same signature as the ANSI functions, you can simply add a section with #defines at the end of luaconf.h