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
7 -#include <linux/inotify.h>
9 -/*#define IN_CREATE 0x00000100*/
10 -#define IN_DELETE 0x00000200
11 -#define IN_CLOSE_WRITE 0x00000008
13 #define INOTIFY_EVENTSIZE sizeof(struct inotify_event)
15 -#define __u32 unsigned int
17 -/* now mostly stolen from the Linux::Inotify2 perl module */
18 -/* this should eventually be available from glibc but isn't yet */
20 -#include <sys/syscall.h>
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__)
60 -#if _MIPS_SIM == _ABIO32
62 - * Linux o32 style syscalls are in the range from 4000 to 4999.
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)
70 -#if _MIPS_SIM == _ABI64
72 - * Linux 64-bit syscalls are in the range from 5000 to 5999.
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)
80 -#if _MIPS_SIM == _ABIN32
82 - * Linux N32 syscalls are in the range from 6000 to 6999.
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)
91 -# error "Unsupported architecture!"
94 -static inline int inotify_init (void)
96 - return syscall (__NR_inotify_init);
99 -static inline int inotify_add_watch (int fd, const char *name, __u32 mask)
101 - return syscall (__NR_inotify_add_watch, fd, name, mask);
104 -static inline int inotify_rm_watch (int fd, __u32 wd)
106 - return syscall (__NR_inotify_rm_watch, fd, wd);
108 +#include <sys/inotify.h>