diff options
author | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2012-08-13 19:43:56 +0100 |
---|---|---|
committer | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2012-11-19 15:14:17 +0000 |
commit | 0b7ab6cf1cf54080f9cd4851a7b7f4b247af7d99 (patch) | |
tree | de67b2bffe1f4bb4bca1d0c51d87c023bfe98e6e /dbus/dbus-sysdeps-pthread.c | |
parent | 277675a40e7252a1c5c479b0e0572d9b8a4014ae (diff) | |
download | dbus-0b7ab6cf1cf54080f9cd4851a7b7f4b247af7d99.tar.gz |
dbus-sysdeps-pthread.c: don't fail if !HAVE_MONOTONIC_CLOCK under -Werror=unused
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=47239
Diffstat (limited to 'dbus/dbus-sysdeps-pthread.c')
-rw-r--r-- | dbus/dbus-sysdeps-pthread.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/dbus/dbus-sysdeps-pthread.c b/dbus/dbus-sysdeps-pthread.c index c60457be..439c9c62 100644 --- a/dbus/dbus-sysdeps-pthread.c +++ b/dbus/dbus-sysdeps-pthread.c @@ -36,12 +36,14 @@ #include <config.h> +#ifdef HAVE_MONOTONIC_CLOCK /* Whether we have a "monotonic" clock; i.e. a clock not affected by * changes in system time. * This is initialized once in check_monotonic_clock below. * https://bugs.freedesktop.org/show_bug.cgi?id=18121 */ static dbus_bool_t have_monotonic_clock = 0; +#endif struct DBusRMutex { pthread_mutex_t lock; /**< the lock */ |