Fix monotonic clock detection on kFreeBSD
authorModestas Vainius <modax@debian.org>
Tue, 15 May 2018 16:24:10 +0000 (17:24 +0100)
committerLisandro Damián Nicanor Pérez Meyer <lisandro@debian.org>
Tue, 15 May 2018 16:24:10 +0000 (17:24 +0100)
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

config.tests/unix/clock-gettime/clock-gettime.pri

index 65b49fb8b45e6b64d45b9902c9c644a1241e524b..85a07e245384ecc24fbfadbe361a333957b53e65 100644 (file)
@@ -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