timegm: add portable implementation (Solaris support)
authorBlake Jones <blakej@foo.net>
Wed, 21 Aug 2013 11:09:54 +0000 (13:09 +0200)
committerDavid Bremner <bremner@debian.org>
Fri, 23 Aug 2013 15:57:35 +0000 (17:57 +0200)
commit8c6b2e7e9d30bb3a9ef4fd8632cbf6d8d0673bb7
treed8e3bed78bbc1323c2f83f21f7867f1666d9911d
parent43843745dcbf31e96f447410e335a8d2aa21b00d
timegm: add portable implementation (Solaris support)

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@volny.cz>
compat/Makefile.local
compat/compat.h
compat/have_timegm.c [new file with mode: 0644]
compat/timegm.c [new file with mode: 0644]
configure
parse-time-string/parse-time-string.c