aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-inotify/riscv64-and-aarch64.patch
diff options
context:
space:
mode:
Diffstat (limited to 'community/py3-inotify/riscv64-and-aarch64.patch')
-rw-r--r--community/py3-inotify/riscv64-and-aarch64.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/community/py3-inotify/riscv64-and-aarch64.patch b/community/py3-inotify/riscv64-and-aarch64.patch
new file mode 100644
index 00000000000..1a60fcf7982
--- /dev/null
+++ b/community/py3-inotify/riscv64-and-aarch64.patch
@@ -0,0 +1,17 @@
+Both riscv64 and aarch64 use the system call numbers defined in
+include/uapi/asm-generic/unistd.h in the Linux source tree.
+
+diff -upr pyinotify-0.9.6.orig/common/inotify_syscalls.c pyinotify-0.9.6/common/inotify_syscalls.c
+--- pyinotify-0.9.6.orig/common/inotify_syscalls.c 2021-07-21 11:09:23.208274056 +0200
++++ pyinotify-0.9.6/common/inotify_syscalls.c 2021-07-21 11:10:19.838321429 +0200
+@@ -60,6 +60,10 @@
+ # define __NR_inotify_init 316
+ # define __NR_inotify_add_watch 317
+ # define __NR_inotify_rm_watch 318
++# elif defined (__aarch64__) || defined(__riscv)
++# define __NR_inotify_init 26
++# define __NR_inotify_add_watch 27
++# define __NR_inotify_rm_watch 28
+ # elif defined (__sh__)
+ # define __NR_inotify_init 290
+ # define __NR_inotify_add_watch 291