diff options
author | jmcneill <jmcneill> | 2008-12-21 13:57:29 +0000 |
---|---|---|
committer | jmcneill <jmcneill> | 2008-12-21 13:57:29 +0000 |
commit | 99cf24874fe118423e93d396716b9c87cf8ee44d (patch) | |
tree | 241fb3536c19f13e5b6748885d17bc117059405d /security/policykit/patches/patch-an | |
parent | a1b055ed2774dd72c048001eaafe53b7ac07d9e6 (diff) | |
download | pkgsrc-99cf24874fe118423e93d396716b9c87cf8ee44d.tar.gz |
PR# pkg/40146: security/policykit fails to build on Linux
Diffstat (limited to 'security/policykit/patches/patch-an')
-rw-r--r-- | security/policykit/patches/patch-an | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/security/policykit/patches/patch-an b/security/policykit/patches/patch-an new file mode 100644 index 00000000000..9a14d0d8df5 --- /dev/null +++ b/security/policykit/patches/patch-an @@ -0,0 +1,31 @@ +$NetBSD: patch-an,v 1.1 2008/12/21 13:57:29 jmcneill Exp $ + +PR# pkg/40146: security/policykit fails to build on Linux + +--- src/polkit/polkit-context.c.orig 2008-05-31 00:24:44.000000000 +0300 ++++ src/polkit/polkit-context.c +@@ -310,6 +310,7 @@ polkit_context_init (PolKitContext *pk_c + } + #else + if (pk_context->io_add_watch_func != NULL) { ++#ifdef HAVE_INOTIFY + pk_context->inotify_fd = inotify_init (); + if (pk_context->inotify_fd < 0) { + polkit_debug ("failed to initialize inotify: %s", strerror (errno)); +@@ -358,6 +359,7 @@ polkit_context_init (PolKitContext *pk_c + /* TODO: set error */ + goto error; + } ++#endif + } + #endif + +@@ -571,7 +573,7 @@ polkit_context_io_func (PolKitContext *p + polkit_debug ("failed to read kqueue event: %s", strerror (errno)); + } + } +-#else ++#elif HAVE_INOTIFY + if (fd == pk_context->inotify_fd) { + /* size of the event structure, not counting name */ + #define EVENT_SIZE (sizeof (struct inotify_event)) |