[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Lua standard library - thread-unsafety
- From: Daurnimator <quae@...>
- Date: Thu, 28 Jun 2012 04:37:33 +1000
On 28 June 2012 03:31, Arseny Vakhrushev <arseny.vakhrushev@gmail.com> wrote:
> The best way would be to use localtime_r() instead of localtime(). The manual states it is sufficient to check for _POSIX_C_SOURCE >= 1 || _XOPEN_SOURCE || _BSD_SOURCE || _SVID_SOURCE || _POSIX_SOURCE.
lua 5.2 does.
http://www.lua.org/source/5.2/loslib.c.html#l_localtime