From ea8c20c3416d03233879f0d96d745606bd66125b Mon Sep 17 00:00:00 2001 From: Johann Lombardi Date: Wed, 17 Mar 2021 14:39:54 +0100 Subject: [PATCH] Disable pthread_condattr_setclock on cygwin Signed-off-by: Johann Lombardi --- configure | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/configure b/configure index 71b31868..7f782e42 100755 --- a/configure +++ b/configure @@ -413,6 +413,7 @@ CYGWIN*) clock_gettime="yes" # clock_monotonic probe has dependency on this clock_monotonic="yes" sched_idle="yes" + pthread_condattr_setclock="no" ;; esac @@ -758,10 +759,8 @@ print_config "POSIX pshared support" "$posix_pshared" ########################################## # POSIX pthread_condattr_setclock() probe -if test "$pthread_condattr_setclock" != "yes" ; then - pthread_condattr_setclock="no" -fi -cat > $TMPC < $TMPC < int main(void) { @@ -770,11 +769,12 @@ int main(void) return 0; } EOF -if compile_prog "" "$LIBS" "pthread_condattr_setclock" ; then - pthread_condattr_setclock=yes -elif compile_prog "" "$LIBS -lpthread" "pthread_condattr_setclock" ; then - pthread_condattr_setclock=yes - LIBS="$LIBS -lpthread" + if compile_prog "" "$LIBS" "pthread_condattr_setclock" ; then + pthread_condattr_setclock=yes + elif compile_prog "" "$LIBS -lpthread" "pthread_condattr_setclock" ; then + pthread_condattr_setclock=yes + LIBS="$LIBS -lpthread" + fi fi print_config "pthread_condattr_setclock()" "$pthread_condattr_setclock" -- 2.25.1