diff options
author | Blake Jones <blakej@foo.net> | 2013-08-21 13:09:54 +0200 |
---|---|---|
committer | David Bremner <bremner@debian.org> | 2013-08-23 17:57:35 +0200 |
commit | 8c6b2e7e9d30bb3a9ef4fd8632cbf6d8d0673bb7 (patch) | |
tree | d8e3bed78bbc1323c2f83f21f7867f1666d9911d /parse-time-string | |
parent | 43843745dcbf31e96f447410e335a8d2aa21b00d (diff) |
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>
Diffstat (limited to 'parse-time-string')
-rw-r--r-- | parse-time-string/parse-time-string.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/parse-time-string/parse-time-string.c b/parse-time-string/parse-time-string.c index 584067d3..ccad422b 100644 --- a/parse-time-string/parse-time-string.c +++ b/parse-time-string/parse-time-string.c @@ -32,6 +32,7 @@ #include <sys/time.h> #include <sys/types.h> +#include "compat.h" #include "parse-time-string.h" /* |