aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils
diff options
context:
space:
mode:
authormarcus <marcus@FreeBSD.org>2012-03-05 07:42:25 +0800
committermarcus <marcus@FreeBSD.org>2012-03-05 07:42:25 +0800
commitb655dd8cd88a84bd93322a9a5859d080e09d0c3c (patch)
tree6378fdce91572f2c4dcfc1783554566bd2690be4 /sysutils
parent1833d28383dd8c536b4aba0c5ab87a806f7d1d43 (diff)
downloadfreebsd-ports-gnome-b655dd8cd88a84bd93322a9a5859d080e09d0c3c.tar.gz
freebsd-ports-gnome-b655dd8cd88a84bd93322a9a5859d080e09d0c3c.tar.zst
freebsd-ports-gnome-b655dd8cd88a84bd93322a9a5859d080e09d0c3c.zip
Fix the build when libinotify is installed.
Reported by: Cameron Jacobson <cjacobson@starpoundtech.com>
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/policykit/files/patch-src_polkit_polkit-context.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/sysutils/policykit/files/patch-src_polkit_polkit-context.c b/sysutils/policykit/files/patch-src_polkit_polkit-context.c
new file mode 100644
index 000000000000..4d763448e299
--- /dev/null
+++ b/sysutils/policykit/files/patch-src_polkit_polkit-context.c
@@ -0,0 +1,22 @@
+--- src/polkit/polkit-context.c.orig 2012-03-04 18:35:51.000000000 -0500
++++ src/polkit/polkit-context.c 2012-03-04 18:38:35.000000000 -0500
+@@ -45,7 +45,8 @@
+ #else
+ #ifdef HAVE_INOTIFY
+ #include <sys/inotify.h>
+-#elif HAVE_KQUEUE
++#endif
++#ifdef HAVE_KQUEUE
+ #include <sys/event.h>
+ #include <sys/time.h>
+ #include <fcntl.h>
+@@ -123,7 +124,8 @@ struct _PolKitContext
+ int inotify_config_wd;
+ int inotify_policy_wd;
+ int inotify_grant_perm_wd;
+-#elif HAVE_KQUEUE
++#endif
++#ifdef HAVE_KQUEUE
+ int kqueue_fd;
+ int kqueue_fd_watch_id;
+ int kqueue_config_fd;