1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
|
From: Edmund Grimley Evans <edmund.grimley.evans@gmail.com>
Date: Fri, 24 Feb 2017 20:39:36 +0000
Subject: Add support for AArch64
---
libtangglue/src/inotify-syscalls.h | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/libtangglue/src/inotify-syscalls.h b/libtangglue/src/inotify-syscalls.h
index b88caf1..7245bc1 100644
--- a/libtangglue/src/inotify-syscalls.h
+++ b/libtangglue/src/inotify-syscalls.h
@@ -43,13 +43,21 @@
# define __NR_inotify_init 318
# define __NR_inotify_add_watch 319
# define __NR_inotify_rm_watch 320
+#elif defined (__aarch64__)
+# define __NR_inotify_init1 26
+# define __NR_inotify_add_watch 27
+# define __NR_inotify_rm_watch 28
#else
# error "Unsupported architecture!"
#endif
static inline int inotify_init (void)
{
+#ifdef __NR_inotify_init
return syscall (__NR_inotify_init);
+#else
+ return syscall (__NR_inotify_init1, 0);
+#endif
}
static inline int inotify_add_watch (int fd, const char *name, __u32 mask)
|