clamav/clamav-fan-syscalls.patch

22 lines
791 B
Diff

Index: clamav-0.98.1/clamd/fan-syscalllib.h
===================================================================
--- clamav-0.98.1.orig/clamd/fan-syscalllib.h
+++ clamav-0.98.1/clamd/fan-syscalllib.h
@@ -10,6 +10,16 @@
#elif defined(__i386__)
# define __NR_fanotify_init 338
# define __NR_fanotify_mark 339
+#elif defined(__s390__) || defined(__s390x__)
+# define __NR_fanotify_init 332
+# define __NR_fanotify_mark 333
+#elif defined(__powerpc__) || defined(__powerpc64__)
+# define __NR_fanotify_init 323
+# define __NR_fanotify_mark 324
+#elif defined(__arm__) || defined(__aarch64__)
+/* check ... base offset 0 */
+# define __NR_fanotify_init 367
+# define __NR_fanotify_mark 368
#else
# error "System call numbers not defined for this architecture"
#endif