avoid conflict with the POSIX timer_t type
It hits a compilation error with glibc 2.19 without a rename.
This commit is contained in:
@@ -7,9 +7,9 @@
|
||||
typedef struct {
|
||||
struct timeval tv0;
|
||||
struct timeval tv1;
|
||||
} timer_t;
|
||||
} timedelta_t;
|
||||
|
||||
void timer_start(timer_t *timer);
|
||||
void timer_stop(timer_t *timer);
|
||||
uint64_t timer_usec(const timer_t *timer);
|
||||
void timer_ratio(timer_t *a, timer_t *b, char *buf, size_t buflen);
|
||||
void timer_start(timedelta_t *timer);
|
||||
void timer_stop(timedelta_t *timer);
|
||||
uint64_t timer_usec(const timedelta_t *timer);
|
||||
void timer_ratio(timedelta_t *a, timedelta_t *b, char *buf, size_t buflen);
|
||||
|
Reference in New Issue
Block a user