SpartanJ / efsw

efsw is a C++ cross-platform file system watcher and notifier.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fix for build failure on aarch64

SpartanJ opened this issue · comments

Original report by bavier (Bitbucket: bavier, GitHub: bavier).


When I try to build efsw on aarch64 the build fails in the efsw directory with an error from inotify_nosys.h, saying "Unsupported architecture!"

The following patch fixes this.

--- efsw/inotify-nosys.h  2017-12-14 16:27:16.125871099 -0600
+++ efsw/inotify-nosys.h  2017-12-14 16:26:39.786022981 -0600
@@ -69,6 +69,11 @@
 # define __NR_inotify_add_watch (__NR_SYSCALL_BASE+317)
 # define __NR_inotify_rm_watch (__NR_SYSCALL_BASE+318)

+#elif defined (__aarch64__)
+# define __NR_inotify_init 1043
+# define __NR_inotify_add_watch 27
+# define __NR_inotify_rm_watch 28
+
 #elif defined (__frv__)
 # define __NR_inotify_init 291
 # define __NR_inotify_add_watch 292

This is from the original bug report at libfive/libfive#69

Original comment by Martín Lucas Golini (Bitbucket: SpartanJ, GitHub: SpartanJ).


Great! Thanks for the patch Bavier!

Already fixed in the last commit: https://bitbucket.org/SpartanJ/efsw/commits/cec6041f3cb5bf0df8b47dc5dcebe780b3e1b0fe

Regards!