From: Modestas Vainius Date: Mon, 14 Sep 2020 13:56:35 +0000 (+0100) Subject: Fix monotonic clock detection on kFreeBSD X-Git-Tag: archive/raspbian/4%4.8.7+dfsg-18+rpi1+deb10u1^2~20 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=8159f2777d7ba974b2affa500d636cde97ea91af;p=qt4-x11.git Fix monotonic clock detection on kFreeBSD Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=624679 Last-Update: 2011-05-01 Origin: vendor Forwarded: not-needed Fix monotonic clock detection on kFreeBSD at configure time. This will finally enable it in QElapsedTimer. QProcess::waitForFinished() and all other qt_safe_select() users cannot safely operate without monotonic clock because qt_safe_select() will indicate timeout earlier than it is supposed when underlying select() call is interrupted (errno=EINTR). Gbp-Pq: Name kfreebsd_monotonic_clock.diff --- diff --git a/config.tests/unix/clock-gettime/clock-gettime.pri b/config.tests/unix/clock-gettime/clock-gettime.pri index 65b49fb8b..85a07e245 100644 --- a/config.tests/unix/clock-gettime/clock-gettime.pri +++ b/config.tests/unix/clock-gettime/clock-gettime.pri @@ -1,2 +1,2 @@ # clock_gettime() is implemented in librt on these systems -linux-*|hpux-*|solaris-*:LIBS_PRIVATE *= -lrt +linux-*|glibc-*|hpux-*|solaris-*:LIBS_PRIVATE *= -lrt