mirror of
https://github.com/cuberite/libevent.git
synced 2025-09-23 03:17:06 -04:00
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:
parent
a83caa6b29
commit
40a44b36bb
4
event.c
4
event.c
@ -159,9 +159,9 @@ gettime(struct event_base *base, struct timeval *tp)
|
|||||||
}
|
}
|
||||||
|
|
||||||
#if defined(HAVE_CLOCK_GETTIME) && defined(CLOCK_MONOTONIC)
|
#if defined(HAVE_CLOCK_GETTIME) && defined(CLOCK_MONOTONIC)
|
||||||
struct timespec ts;
|
|
||||||
|
|
||||||
if (use_monotonic) {
|
if (use_monotonic) {
|
||||||
|
struct timespec ts;
|
||||||
|
|
||||||
if (clock_gettime(CLOCK_MONOTONIC, &ts) == -1)
|
if (clock_gettime(CLOCK_MONOTONIC, &ts) == -1)
|
||||||
return (-1);
|
return (-1);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user