[PATCH 4/4] timegm: add portable implementation (Solaris support)
Tomi Ollila
tomi.ollila at iki.fi
Wed Aug 21 04:26:57 PDT 2013
On Wed, Aug 21 2013, Vladimir.Marek at oracle.com wrote:
> From: Blake Jones <blakej at foo.net>
>
> The timegm(3) function is a non-standard extension to libc which is
> available in GNU libc and on some BSDs. Although SunOS had this
> function in its libc, Solaris (unfortunately) removed it. This patch
> implements a very simple version of timegm() which is good enough for
> parse-time-string.c.
>
> Signed-off-by: Vladimir Marek <vlmarek at volny.cz>
> ---
Thanks, LGTM.
> compat/Makefile.local | 4 +++
> compat/compat.h | 5 +++
> compat/have_timegm.c | 7 +++++
> compat/timegm.c | 56 +++++++++++++++++++++++++++++++++
> configure | 11 +++++++
> parse-time-string/parse-time-string.c | 1 +
> 6 files changed, 84 insertions(+)
> create mode 100644 compat/have_timegm.c
> create mode 100644 compat/timegm.c
>
More information about the notmuch
mailing list