aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-inotify/riscv64-and-aarch64.patch
blob: 1a60fcf7982c387e506da588d8688d7176faa006 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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