Source: tangerine Version: 0.3.4-6 Tags: patch User: debian-...@lists.debian.org Usertags: arm64
It failed to build on arm64: http://buildd.debian.org/status/package.php?p=tangerine&suite=sid The error was: src/inotify-syscalls.h:47:3: error: #error "Unsupported architecture!" # error "Unsupported architecture!" I think the attached trivial patch fixes it.
diff -ru tangerine-0.3.4.orig/libtangglue/src/inotify-syscalls.h tangerine-0.3.4/libtangglue/src/inotify-syscalls.h --- tangerine-0.3.4.orig/libtangglue/src/inotify-syscalls.h +++ tangerine-0.3.4/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)