r19564@catbus: nickm | 2008-05-04 13:23:10 -0400

Fix compile with --enable-gcc-warnings and clock_gettime()


svn:r766
This commit is contained in:
Nick Mathewson 2008-05-04 17:23:20 +00:00
parent a83caa6b29
commit 40a44b36bb

View File

@ -159,9 +159,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);