Skip to content

Commit

Permalink
time: use new FLB_HAVE_TIMESPEC_GET macro for timespec_get() detection
Browse files Browse the repository at this point in the history
Signed-off-by: Eduardo Silva <[email protected]>
  • Loading branch information
edsiper committed Mar 28, 2018
1 parent fe17af2 commit c7b92e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/flb_time.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ static int _flb_time_get(struct flb_time *tm)
tm->tm.tv_sec = time(NULL);
tm->tm.tv_nsec = 0;
return 0;
#elif __STDC_VERSION__ >= 201112L
#elif defined FLB_HAVE_TIMESPEC_GET
/* C11 supported! */
return timespec_get(&tm->tm, TIME_UTC);
#else /* __STDC_VERSION__ */
Expand Down

0 comments on commit c7b92e7

Please sign in to comment.