]> git.pld-linux.org Git - packages/kdelibs.git/blob - kdelibs-inotify.patch
- add gcc 4.4 patch (thx patrys)
[packages/kdelibs.git] / kdelibs-inotify.patch
1 --- kdelibs-3.5.10/kio/kio/kdirwatch.cpp~       2009-04-23 17:42:34.000000000 +0300
2 +++ kdelibs-3.5.10/kio/kio/kdirwatch.cpp        2009-04-23 17:51:10.164116136 +0300
3 @@ -71,38 +71,7 @@
4  #include <unistd.h>
5  #include <fcntl.h>
6  #include <sys/syscall.h>
7 -// Linux kernel headers are documented to not compile
8 -#define _S390_BITOPS_H
9 -#include <linux/inotify.h>
10 -
11 -static inline int inotify_init (void)
12 -{
13 -  return syscall (__NR_inotify_init);
14 -}
15 -
16 -static inline int inotify_add_watch (int fd, const char *name, __u32 mask)
17 -{
18 -  return syscall (__NR_inotify_add_watch, fd, name, mask);
19 -}
20 -
21 -static inline int inotify_rm_watch (int fd, __u32 wd)
22 -{
23 -  return syscall (__NR_inotify_rm_watch, fd, wd);
24 -}
25 -#endif
26 -
27 -#ifdef HAVE_INOTIFY
28 -#ifndef  IN_ONLYDIR
29 -#define  IN_ONLYDIR 0x01000000 
30 -#endif
31 -
32 -#ifndef IN_DONT_FOLLOW
33 -#define IN_DONT_FOLLOW 0x02000000
34 -#endif
35 -
36 -#ifndef IN_MOVE_SELF
37 -#define IN_MOVE_SELF 0x00000800
38 -#endif
39 +#include <sys/inotify.h>
40  #endif
41  
42  #include <sys/utsname.h>
This page took 0.032463 seconds and 3 git commands to generate.