File kdepim-trinity-editorwatcher-crash-fix.patch of Package kdepim3

--- branches/trinity/kdepim/kmail/editorwatcher.cpp	2009/12/16 01:32:26	1062790
+++ branches/trinity/kdepim/kmail/editorwatcher.cpp	2009/12/16 01:50:36	1062791
@@ -39,27 +39,11 @@
 #elif HAVE_INOTIFY
 #include <sys/ioctl.h>
 #include <unistd.h>
-#include <fcntl.h>
+#include <sys/inotify.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);
-}
 #endif
 
 using namespace KMail;
openSUSE Build Service is sponsored by