Skip to content

Commit

Permalink
configure.ac: fix broken test for clock_gettime(CLOCK_MONOTONIC,ts) [#…
Browse files Browse the repository at this point in the history
…1777 follow-up]

Signed-off-by: Jim Klimov <[email protected]>
  • Loading branch information
jimklimov committed Aug 4, 2023
1 parent 7b77e43 commit d4b01c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -861,7 +861,7 @@ AC_CACHE_CHECK([for clock_gettime(CLOCK_MONOTONIC,ts)],
],
[struct timespec monoclock_ts;
int got_monoclock = clock_gettime(CLOCK_MONOTONIC, &monoclock_ts);
if (ts.tv_sec < 0 || ts.tv_nsec < 0) return 1])],
if (monoclock_ts.tv_sec < 0 || monoclock_ts.tv_nsec < 0) return 1])],
[ac_cv_func_clock_gettime=yes], [ac_cv_func_clock_gettime=no]
)])
AS_IF([test x"${ac_cv_func_clock_gettime}" = xyes],
Expand Down

0 comments on commit d4b01c4

Please sign in to comment.