aboutsummaryrefslogtreecommitdiff
path: root/devel/dbus
diff options
context:
space:
mode:
authorJoe Marcus Clarke <marcus@FreeBSD.org>2005-07-02 19:30:59 +0000
committerJoe Marcus Clarke <marcus@FreeBSD.org>2005-07-02 19:30:59 +0000
commit668c6bf02c4724e5168e74f27a12f261e96c0af5 (patch)
treecd29b3fcec51a0015e315ed647d61d23e030d60c /devel/dbus
parent608020fae1ded72bb01f529b3b65604d90da99b9 (diff)
downloadports-668c6bf02c4724e5168e74f27a12f261e96c0af5.tar.gz
ports-668c6bf02c4724e5168e74f27a12f261e96c0af5.zip
Notes
Diffstat (limited to 'devel/dbus')
-rw-r--r--devel/dbus/files/patch-bus_dir-watch.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/devel/dbus/files/patch-bus_dir-watch.c b/devel/dbus/files/patch-bus_dir-watch.c
index 68af86766758..9830112c43fa 100644
--- a/devel/dbus/files/patch-bus_dir-watch.c
+++ b/devel/dbus/files/patch-bus_dir-watch.c
@@ -1,5 +1,5 @@
--- bus/dir-watch.c.orig Tue Jun 14 22:31:38 2005
-+++ bus/dir-watch.c Sat Jul 2 15:07:55 2005
++++ bus/dir-watch.c Sat Jul 2 15:29:35 2005
@@ -28,17 +28,25 @@
#include <stdlib.h>
#include <unistd.h>
@@ -45,10 +45,11 @@
+_handle_kqueue_watch (DBusWatch *watch, unsigned int flags, void *data)
+{
+ struct kevent ev;
++ struct timespec nullts = { 0, 0 };
+ int res;
+ pid_t pid;
+
-+ res = kevent (kq, NULL, 0, &ev, 1, NULL);
++ res = kevent (kq, NULL, 0, &ev, 1, &nullts);
+
+ if (res > 0)
+ {
@@ -78,7 +79,6 @@
+{
+ int fd;
+ struct kevent ev;
-+ static struct timespec nullts = { 0, 0 };
+
+ _dbus_assert (dir != NULL);
+
@@ -129,7 +129,7 @@
+ EV_SET (&ev, fd, EVFILT_VNODE, EV_ADD | EV_ENABLE | EV_CLEAR,
+ NOTE_DELETE | NOTE_EXTEND | NOTE_WRITE | NOTE_LINK | NOTE_RENAME |
+ NOTE_REVOKE, 0, 0);
-+ if (kevent (kq, &ev, 1, NULL, 0, &nullts) == -1)
++ if (kevent (kq, &ev, 1, NULL, 0, NULL) == -1)
+ {
+ _dbus_warn ("Cannot setup a kevent for '%s'; error '%s'\n", dir, _dbus_strerror (errno));
+ close (fd);