After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 312934 - missing support for inotify on arch other than x86 and x86_64; patch
missing support for inotify on arch other than x86 and x86_64; patch
Status: RESOLVED FIXED
Product: gamin
Classification: Other
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Gamin Maintainer(s)
Gamin Maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2005-08-08 20:06 UTC by Arkadiusz Miskiewicz
Modified: 2005-08-08 21:17 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Arkadiusz Miskiewicz 2005-08-08 20:06:00 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);
Comment 1 Daniel Veillard 2005-08-08 21:17:01 UTC
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