add proper guard and typedef

This commit is contained in:
Brent Cook
2018-03-23 13:45:05 -05:00
parent 4b2a8cd1c1
commit 6b513a1c78
2 changed files with 8 additions and 2 deletions

View File

@@ -5,7 +5,7 @@
#define ORWL_GIGA UINT64_C(1000000000)
int
clock_gettime(int clock_id, struct timespec *tp)
clock_gettime(clockid_t clock_id, struct timespec *tp)
{
static double orwl_timebase = 0.0;
static uint64_t orwl_timestart = 0;