dbus-sysdeps-pthread.c: don't fail if !HAVE_MONOTONIC_CLOCK under -Werror=unused
authorSimon McVittie <simon.mcvittie@collabora.co.uk>
Mon, 13 Aug 2012 18:43:56 +0000 (19:43 +0100)
committerSimon McVittie <simon.mcvittie@collabora.co.uk>
Mon, 19 Nov 2012 15:14:17 +0000 (15:14 +0000)
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=47239

dbus/dbus-sysdeps-pthread.c

index c60457b..439c9c6 100644 (file)
 
 #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 */