$OpenBSD: patch-dbus_dbus-sysdeps-pthread_c,v 1.1 2013/01/08 09:30:27 ajacoutot Exp $

From 0b7ab6cf1cf54080f9cd4851a7b7f4b247af7d99 Mon Sep 17 00:00:00 2001
From: Simon McVittie <simon.mcvittie@collabora.co.uk>
Date: Mon, 13 Aug 2012 18:43:56 +0000
Subject: dbus-sysdeps-pthread.c: don't fail if !HAVE_MONOTONIC_CLOCK under -Werror=unused

--- dbus/dbus-sysdeps-pthread.c.orig	Fri Sep 28 21:17:25 2012
+++ dbus/dbus-sysdeps-pthread.c	Tue Jan  8 09:56:41 2013
@@ -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 */
