r19631@catbus: nickm | 2008-05-07 16:06:48 -0400

Backport: fix compilation on non-c99 platforms.


svn:r781
This commit is contained in:
Nick Mathewson 2008-05-07 20:11:37 +00:00
parent 0d43f0dfc5
commit fe3c4a2440

View File

@ -145,9 +145,9 @@ gettime(struct event_base *base, struct timeval *tp)
}
#if defined(HAVE_CLOCK_GETTIME) && defined(CLOCK_MONOTONIC)
struct timespec ts;
if (use_monotonic) {
struct timespec ts;
if (clock_gettime(CLOCK_MONOTONIC, &ts) == -1)
return (-1);