diff options
author | Richard Purdie <rpurdie@rpsys.net> | 2006-07-27 10:53:11 +0200 |
---|---|---|
committer | Kay Sievers <kay.sievers@suse.de> | 2006-07-27 10:53:11 +0200 |
commit | 353b00edbcd4da7a2758b50e1e4abf18ac2c6625 (patch) | |
tree | 7e9cc2961dc379074135a690d0ef72ac4ab3029f | |
parent | cdf18948639e56d2e3c71606c72e2f2d239c100b (diff) |
Fix inotify syscalls on ARM
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>
-rw-r--r-- | udev_libc_wrapper.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/udev_libc_wrapper.h b/udev_libc_wrapper.h index ed8070947f..238a4752f2 100644 --- a/udev_libc_wrapper.h +++ b/udev_libc_wrapper.h @@ -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 |