]> git.pld-linux.org Git - packages/ggz-server.git/blob - ggz-server-inotify-header.patch
- rel 6
[packages/ggz-server.git] / ggz-server-inotify-header.patch
1 --- ggz-server-0.0.14.1/ggzd/reconfiguration.h.orig     2008-01-05 20:03:09.000000000 +0100
2 +++ ggz-server-0.0.14.1/ggzd/reconfiguration.h  2012-11-18 21:03:40.485733083 +0100
3 @@ -28,107 +28,9 @@
4  
5  #ifdef HAVE_INOTIFY
6  
7 -#include <linux/inotify.h>
8 -
9 -/*#define IN_CREATE      0x00000100*/
10 -#define IN_DELETE      0x00000200
11 -#define IN_CLOSE_WRITE 0x00000008
12  
13  #define INOTIFY_EVENTSIZE sizeof(struct inotify_event)
14 -
15 -#define __u32 unsigned int
16 -
17 -/* now mostly stolen from the Linux::Inotify2 perl module */
18 -/* this should eventually be available from glibc but isn't yet */
19 -
20 -#include <sys/syscall.h>
21 -
22 -#if defined(__i386__)
23 -# define __NR_inotify_init     291
24 -# define __NR_inotify_add_watch        292
25 -# define __NR_inotify_rm_watch 293
26 -#elif defined(__x86_64__)
27 -# define __NR_inotify_init     253
28 -# define __NR_inotify_add_watch        254
29 -# define __NR_inotify_rm_watch 255
30 -#elif defined(__powerpc__) || defined(__powerpc64__)
31 -# define __NR_inotify_init     275
32 -# define __NR_inotify_add_watch        276
33 -# define __NR_inotify_rm_watch 277
34 -#elif defined (__ia64__)
35 -# define __NR_inotify_init     1277
36 -# define __NR_inotify_add_watch        1278
37 -# define __NR_inotify_rm_watch 1279
38 -#elif defined (__s390__)
39 -# define __NR_inotify_init     284
40 -# define __NR_inotify_add_watch        285
41 -# define __NR_inotify_rm_watch 286
42 -#elif defined (__alpha__)
43 -# define __NR_inotify_init     444
44 -# define __NR_inotify_add_watch        445
45 -# define __NR_inotify_rm_watch 446
46 -#elif defined (__sparc__) || defined (__sparc64__)
47 -# define __NR_inotify_init     151
48 -# define __NR_inotify_add_watch        152
49 -# define __NR_inotify_rm_watch 156
50 -#elif defined (__arm__)
51 -# define __NR_inotify_init     316
52 -# define __NR_inotify_add_watch        317
53 -# define __NR_inotify_rm_watch 318
54 -#elif defined (__sh__)
55 -# define __NR_inotify_init     290
56 -# define __NR_inotify_add_watch        291
57 -# define __NR_inotify_rm_watch 292
58 -#elif defined (__mips__)
59 -
60 -#if _MIPS_SIM == _ABIO32
61 -/*
62 - * Linux o32 style syscalls are in the range from 4000 to 4999.
63 - */
64 -#define __NR_Linux             4000
65 -#define __NR_inotify_init      (__NR_Linux + 284)
66 -#define __NR_inotify_add_watch (__NR_Linux + 285)
67 -#define __NR_inotify_rm_watch  (__NR_Linux + 286)
68 -#endif
69 -
70 -#if _MIPS_SIM == _ABI64
71 -/*
72 - * Linux 64-bit syscalls are in the range from 5000 to 5999.
73 - */
74 -#define __NR_Linux 5000
75 -#define __NR_inotify_init      (__NR_Linux + 243)
76 -#define __NR_inotify_add_watch (__NR_Linux + 244)
77 -#define __NR_inotify_rm_watch  (__NR_Linux + 245)
78 -#endif
79 -
80 -#if _MIPS_SIM == _ABIN32
81 -/*
82 - * Linux N32 syscalls are in the range from 6000 to 6999.
83 - */
84 -#define __NR_Linux 6000
85 -#define __NR_inotify_init      (__NR_Linux + 247)
86 -#define __NR_inotify_add_watch (__NR_Linux + 248)
87 -#define __NR_inotify_rm_watch  (__NR_Linux + 249)
88 -#endif
89 -
90 -#else
91 -# error "Unsupported architecture!"
92 -#endif
93 -
94 -static inline int inotify_init (void)
95 -{
96 -       return syscall (__NR_inotify_init);
97 -}
98 -
99 -static inline int inotify_add_watch (int fd, const char *name, __u32 mask)
100 -{
101 -       return syscall (__NR_inotify_add_watch, fd, name, mask);
102 -}
103 -
104 -static inline int inotify_rm_watch (int fd, __u32 wd)
105 -{
106 -       return syscall (__NR_inotify_rm_watch, fd, wd);
107 -}
108 +#include <sys/inotify.h>
109  
110  #endif
111  
This page took 0.072523 seconds and 3 git commands to generate.