Skip to content

Commit 184e0da

Browse files
committed
configure.ac: don't check for clock_ functions
They shouldn't be exposed on Windows and lead to winpthread being linked in
1 parent 70f172b commit 184e0da

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

configure.ac

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5209,6 +5209,9 @@ WITH_SAVE_ENV([
52095209
])
52105210
])
52115211

5212+
case $host in
5213+
*-*-mingw*) ;;
5214+
*)
52125215
AC_CHECK_FUNCS(clock_gettime, [], [
52135216
AC_CHECK_LIB(rt, clock_gettime, [
52145217
LIBS="$LIBS -lrt"
@@ -5229,6 +5232,8 @@ AC_CHECK_FUNCS(clock_settime, [], [
52295232
AC_DEFINE(HAVE_CLOCK_SETTIME, 1)
52305233
])
52315234
])
5235+
;;
5236+
esac
52325237

52335238
AC_CHECK_FUNCS(clock_nanosleep, [], [
52345239
AC_CHECK_LIB(rt, clock_nanosleep, [

0 commit comments

Comments
 (0)