blob: 19fae72ebc6c6a1a1204daadcac9601f70f1fe27 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
diff -urN gamin-0.1.3.org/server/local_inotify_syscalls.h gamin-0.1.3/server/local_inotify_syscalls.h
--- gamin-0.1.3.org/server/local_inotify_syscalls.h 2005-07-21 18:43:43.000000000 +0200
+++ gamin-0.1.3/server/local_inotify_syscalls.h 2005-08-08 21:44:42.000000000 +0200
@@ -11,11 +11,23 @@
# define __NR_inotify_init 253
# define __NR_inotify_add_watch 254
# define __NR_inotify_rm_watch 255
+#elif defined(__alpha__)
+# define __NR_inotify_init 444
+# define __NR_inotify_add_watch 445
+# define __NR_inotify_rm_watch 446
+#elif defined(__ppc__)
+# define __NR_inotify_init 275
+# define __NR_inotify_add_watch 276
+# define __NR_inotify_rm_watch 277
+#elif defined(__sparc__)
+# define __NR_inotify_init 151
+# define __NR_inotify_add_watch 152
+# define __NR_inotify_rm_watch 156
#else
# warning "Unsupported architecture"
#endif
-#if defined(__i386__) || defined(__x86_64)
+#if defined(__i386__) || defined(__x86_64__) || defined(__alpha__) || defined(__ppc__) || defined(__sparc__)
static inline int inotify_init (void)
{
return syscall (__NR_inotify_init);
|