chiark / gitweb /
Fix inotify syscalls on ARM
authorRichard Purdie <rpurdie@rpsys.net>
Thu, 27 Jul 2006 08:53:11 +0000 (10:53 +0200)
committerKay Sievers <kay.sievers@suse.de>
Thu, 27 Jul 2006 08:53:11 +0000 (10:53 +0200)
This patch fixes the inotify syscalls on ARM so they work. It uses
__NR_SYSCALL_BASE from the libc headers (via sys/syscall.h) as this
value depends on which ABI you're using and trying to work that out gets
complicated.

Signed-off-by: Richard Purdie <rpurdie@rpsys.net>
udev_libc_wrapper.h

index ed8070947fbe4a77cec2f10105b45b3fd28cc8c0..238a4752f24a277456891955286b0cf6c3063381 100644 (file)
@@ -58,9 +58,9 @@
 # define __NR_inotify_add_watch        152
 # define __NR_inotify_rm_watch 156
 #elif defined (__arm__)
-# define __NR_inotify_init     316
-# define __NR_inotify_add_watch        317
-# define __NR_inotify_rm_watch 318
+# define __NR_inotify_init     __NR_SYSCALL_BASE+316
+# define __NR_inotify_add_watch        __NR_SYSCALL_BASE+317
+# define __NR_inotify_rm_watch __NR_SYSCALL_BASE+318
 #elif defined (__sh__)
 # define __NR_inotify_init     290
 # define __NR_inotify_add_watch        291