]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUILD: lua: replace timegm() with my_timegm() to fix build on Solaris 10
authorWilly Tarreau <w@1wt.eu>
Wed, 19 Jul 2017 17:08:48 +0000 (19:08 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 19 Jul 2017 17:15:13 +0000 (19:15 +0200)
commitabd9bb20b76818c9f461a82b72b10818736ff8b3
tree599beb169857d0ec0e89c2e125fceabf77cb5d0c
parentcb1949b8b30b8db7e05546da2939eff2b5973321
BUILD: lua: replace timegm() with my_timegm() to fix build on Solaris 10

Akhnin Nikita reported that Lua doesn't build on Solaris 10 because
the code uses timegm() to parse a date, which is not provided there.
The recommended way to implement timegm() is broken in the man page,
as it is based on a change of the TZ environment variable at run time
before calling the function (which is obviously not thread safe, and
terribly inefficient).

Here instead we rely on the new my_timegm() function, it should be
sufficient for all known use cases.
src/hlua_fcn.c