34 lines
876 B
Diff
34 lines
876 B
Diff
From 95a813bdd3f3912e2d50750783bf1c127437953c Mon Sep 17 00:00:00 2001
|
|
From: Christoph Reiter <reiter.christoph@gmail.com>
|
|
Date: Sun, 1 Aug 2021 18:35:17 +0200
|
|
Subject: [PATCH 095/N] configure.ac: don't check for clock_ functions
|
|
|
|
They shouldn't be exposed on Windows and lead to winpthread being linked in
|
|
---
|
|
configure.ac | 5 +++++
|
|
1 file changed, 5 insertions(+)
|
|
|
|
diff --git a/configure.ac b/configure.ac
|
|
index 773b090..bab2435 100644
|
|
--- a/configure.ac
|
|
+++ b/configure.ac
|
|
@@ -5217,6 +5217,9 @@ WITH_SAVE_ENV([
|
|
])
|
|
])
|
|
|
|
+case $host in
|
|
+ *-*-mingw*) ;;
|
|
+ *)
|
|
AC_CHECK_FUNCS(clock_gettime, [], [
|
|
AC_CHECK_LIB(rt, clock_gettime, [
|
|
LIBS="$LIBS -lrt"
|
|
@@ -5237,6 +5240,8 @@ AC_CHECK_FUNCS(clock_settime, [], [
|
|
AC_DEFINE(HAVE_CLOCK_SETTIME, 1)
|
|
])
|
|
])
|
|
+ ;;
|
|
+esac
|
|
|
|
AC_CHECK_FUNCS(clock_nanosleep, [], [
|
|
AC_CHECK_LIB(rt, clock_nanosleep, [
|