diff options
Diffstat (limited to 'kmail/editorwatcher.cpp')
-rw-r--r-- | kmail/editorwatcher.cpp | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/kmail/editorwatcher.cpp b/kmail/editorwatcher.cpp index 9e1bb150f..e9fec6608 100644 --- a/kmail/editorwatcher.cpp +++ b/kmail/editorwatcher.cpp @@ -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; |