Skip to content

Commit fdd0d90

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 0f91d7c commit fdd0d90

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
@@ -5205,6 +5205,9 @@ WITH_SAVE_ENV([
52055205
])
52065206
])
52075207

5208+
case $host in
5209+
*-*-mingw*) ;;
5210+
*)
52085211
AC_CHECK_FUNCS(clock_gettime, [], [
52095212
AC_CHECK_LIB(rt, clock_gettime, [
52105213
LIBS="$LIBS -lrt"
@@ -5225,6 +5228,8 @@ AC_CHECK_FUNCS(clock_settime, [], [
52255228
AC_DEFINE(HAVE_CLOCK_SETTIME, 1)
52265229
])
52275230
])
5231+
;;
5232+
esac
52285233

52295234
AC_CHECK_FUNCS(clock_nanosleep, [], [
52305235
AC_CHECK_LIB(rt, clock_nanosleep, [

0 commit comments

Comments
 (0)