SOURCES: gamin-inotify.patch (NEW) - enable inotify on alpha/sparc...
arekm
arekm at pld-linux.org
Mon Aug 8 21:59:47 CEST 2005
Author: arekm Date: Mon Aug 8 19:59:45 2005 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- enable inotify on alpha/sparc/ppc
---- Files affected:
SOURCES:
gamin-inotify.patch (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: SOURCES/gamin-inotify.patch
diff -u /dev/null SOURCES/gamin-inotify.patch:1.1
--- /dev/null Mon Aug 8 21:59:45 2005
+++ SOURCES/gamin-inotify.patch Mon Aug 8 21:59:40 2005
@@ -0,0 +1,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);
================================================================
More information about the pld-cvs-commit
mailing list