Work around time() brokenness on Solaris.
authorDavid Woodhouse <David.Woodhouse@intel.com>
Thu, 19 Apr 2012 22:10:21 +0000 (23:10 +0100)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Thu, 19 Apr 2012 22:20:24 +0000 (23:20 +0100)
commita51e233f88593dde755a19afab6d9722c07c50d5
treeaca66ca16359e221a0d449057ceb219ba33a11ca
parent418fade41a8a7963a7a9d1021663749f3c074083
Work around time() brokenness on Solaris.

On Solaris and OpenIndiana, time() goes backwards. It and gettimeofday()
occasionally jump back to 1970 and return zero seconds — although the
tv_usec field is still sane, bizarrely.

CR7121035 in Solaris, https://www.illumos.org/issues/1871 in OpenIndiana.

It seems that gethrtime() doesn't suffer the same problem, so let's use
that instead of time() for now.

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Makefile.am
compat.c [new file with mode: 0644]
openconnect-internal.h