Skip to content

Commit e1ce24f

Browse files
cosmo0920edsiper
authored andcommitted
time: Fix an incomplete defined guard
Signed-off-by: Hiroshi Hatake <hiroshi@chronosphere.io>
1 parent 6e35cca commit e1ce24f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/cfl_time.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ uint64_t cfl_time_now()
5050
tm.tv_sec = mts.tv_sec;
5151
tm.tv_nsec = mts.tv_nsec;
5252
mach_port_deallocate(mach_task_self(), cclock);
53-
#elif defined CFL_HAVE_TIMESPEC_GET
53+
#elif defined(CFL_HAVE_TIMESPEC_GET) && defined(TIME_UTC)
5454
/* C11 supported */
5555
timespec_get(&tm, TIME_UTC);
5656

0 commit comments

Comments
 (0)