summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authormarkd <markd@pkgsrc.org>2011-02-17 09:37:13 +0000
committermarkd <markd@pkgsrc.org>2011-02-17 09:37:13 +0000
commit4273453623de07f75cf6ad0f690deac90fbc0e27 (patch)
treeae6ec9cc2998e640ee881cafbf465a7a38b3285d /misc
parent86d8e84af48ee7a0066a5e4398de10f91072e5d6 (diff)
downloadpkgsrc-4273453623de07f75cf6ad0f690deac90fbc0e27.tar.gz
Dont try to use kernel only interface to inotify on linux
Diffstat (limited to 'misc')
-rw-r--r--misc/kdepim3/distinfo3
-rw-r--r--misc/kdepim3/patches/patch-kmail_editorwatcher.cpp31
2 files changed, 33 insertions, 1 deletions
diff --git a/misc/kdepim3/distinfo b/misc/kdepim3/distinfo
index 078130fa190..d468f86a196 100644
--- a/misc/kdepim3/distinfo
+++ b/misc/kdepim3/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.61 2011/01/20 11:56:51 markd Exp $
+$NetBSD: distinfo,v 1.62 2011/02/17 09:37:13 markd Exp $
SHA1 (kdepim-3.5.10.tar.bz2) = 537da60fe3564ecc0ed2802e744fbf96386909a9
RMD160 (kdepim-3.5.10.tar.bz2) = 52a834dc8eb377d397404a16a09c8a59b568b305
@@ -15,3 +15,4 @@ SHA1 (patch-aq) = a5e092731269338ed13cf4c30184f890c5f937f6
SHA1 (patch-ar) = d1a2ef8db72a1156beff5f925a262c217fd6eb83
SHA1 (patch-as) = bfcde6d85ca844ebe4cff93ca0ed42deb2cefbff
SHA1 (patch-at) = 670b61b45eed92c854808991e6241f29bee47554
+SHA1 (patch-kmail_editorwatcher.cpp) = e66a40ea73810c59d23f52f6953c09b85d4e1deb
diff --git a/misc/kdepim3/patches/patch-kmail_editorwatcher.cpp b/misc/kdepim3/patches/patch-kmail_editorwatcher.cpp
new file mode 100644
index 00000000000..721db335420
--- /dev/null
+++ b/misc/kdepim3/patches/patch-kmail_editorwatcher.cpp
@@ -0,0 +1,31 @@
+$NetBSD: patch-kmail_editorwatcher.cpp,v 1.1 2011/02/17 09:37:13 markd Exp $
+
+--- kmail/editorwatcher.cpp.orig 2008-02-13 09:39:37.000000000 +0000
++++ kmail/editorwatcher.cpp
+@@ -37,25 +37,7 @@
+ #include <unistd.h>
+ #include <fcntl.h>
+ #include <sys/syscall.h>
+-#include <linux/types.h>
+-// Linux kernel headers are documented to not compile
+-#define _S390_BITOPS_H
+-#include <linux/inotify.h>
+-
+-static inline int inotify_init (void)
+-{
+- return syscall (__NR_inotify_init);
+-}
+-
+-static inline int inotify_add_watch (int fd, const char *name, __u32 mask)
+-{
+- return syscall (__NR_inotify_add_watch, fd, name, mask);
+-}
+-
+-static inline int inotify_rm_watch (int fd, __u32 wd)
+-{
+- return syscall (__NR_inotify_rm_watch, fd, wd);
+-}
++#include <sys/inotify.h>
+ #endif
+
+ using namespace KMail;