diff options
author | Ralf Nolden <nolden@kde.org> | 2016-06-06 12:00:11 +0200 |
---|---|---|
committer | Ralf Nolden <nolden@kde.org> | 2016-06-08 04:11:10 +0000 |
commit | 37ef6b4968b93859df0af13b228b4abb3a0ef2c1 (patch) | |
tree | 275bdbe7b4ba4fc2e16bdecb5a2225d5b73990ef /config.tests | |
parent | 4ea95609ccd9694dac466cae689412024c87e56e (diff) | |
download | qtbase-37ef6b4968b93859df0af13b228b4abb3a0ef2c1.tar.gz |
OpenBSD: use clock_gettime() provided by OS
The use of clock_gettime() is limited to systems having _POSIX_TIMERS
defined, however OpenBSD implements clock_gettime() but does not have the
posix define. Enable using clock_gettime() on OpenBSD as well.
Change-Id: I785954fe61b42b15755ca625a766c9a95179ae8d
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'config.tests')
-rw-r--r-- | config.tests/unix/clock-gettime/clock-gettime.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/config.tests/unix/clock-gettime/clock-gettime.cpp b/config.tests/unix/clock-gettime/clock-gettime.cpp index 4ba05f70f5..a49359d24c 100644 --- a/config.tests/unix/clock-gettime/clock-gettime.cpp +++ b/config.tests/unix/clock-gettime/clock-gettime.cpp @@ -36,7 +36,7 @@ int main(int, char **) { -#if defined(_POSIX_TIMERS) && (_POSIX_TIMERS > 0) +#if (defined(_POSIX_TIMERS) && (_POSIX_TIMERS > 0)) || defined(__OpenBSD__) timespec ts; clock_gettime(CLOCK_REALTIME, &ts); #else |