GNOME Bugzilla – Bug 312934
missing support for inotify on arch other than x86 and x86_64; patch
Last modified: 2005-08-08 21:17:01 UTC
missing support for inotify on arch other than x86 and x86_64; patch attached 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);
Hum, applied (manually because cut and pasting a patch from a web page just don't work, use attachments in the future please). I agree it's a problem, however local_inotify..h should be acopy of the kernel file used only if not found, so the problem really should be solved with kernel devel upgrades. Anyway, applied and commited, thanks, Daniel