$OpenBSD: patch-dbus_dbus-sysdeps-unix_c,v 1.17 2014/01/24 10:43:16 ajacoutot Exp $

From pkgsrc:
_dbus_poll: set the timeout value argument to poll to -1 whenever it is
less than -1 to avoid an infinite EINVAL loop.

--- dbus/dbus-sysdeps-unix.c.orig	Fri Jan 17 17:59:48 2014
+++ dbus/dbus-sysdeps-unix.c	Wed Jan 22 12:00:04 2014
@@ -2555,6 +2555,10 @@ _dbus_poll (DBusPollFD *fds,
       _DBUS_STRUCT_OFFSET (DBusPollFD, revents) ==
       _DBUS_STRUCT_OFFSET (struct pollfd, revents))
     {
+      if (timeout_milliseconds < -1) {
+        _dbus_warn("_dbus_poll: timeout = %d (fixed)\n", timeout_milliseconds);
+        timeout_milliseconds = -1;
+      }
       return poll ((struct pollfd*) fds,
                    n_fds,
                    timeout_milliseconds);
