From: Radovan Birdic <Radovan.Birdic@imgtec.com>
Date: Wed, 13 Jul 2016 11:55:52 +0000
Subject: Add support for mips

---
 libtangglue/src/inotify-syscalls.h | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

diff --git a/libtangglue/src/inotify-syscalls.h b/libtangglue/src/inotify-syscalls.h
index 7245bc1..6bbf3f5 100644
--- a/libtangglue/src/inotify-syscalls.h
+++ b/libtangglue/src/inotify-syscalls.h
@@ -47,6 +47,25 @@
 # define __NR_inotify_init1	26
 # define __NR_inotify_add_watch	27
 # define __NR_inotify_rm_watch	28
+#elif defined (__mips__)
+# if _MIPS_SIM == _MIPS_SIM_ABI32
+#  define __NR_Linux   4000
+#  define __NR_inotify_init (__NR_Linux + 284)
+#  define __NR_inotify_add_watch (__NR_Linux + 285)
+#  define __NR_inotify_rm_watch (__NR_Linux + 286)
+# endif
+# if _MIPS_SIM == _MIPS_SIM_ABI64
+#  define __NR_Linux   5000
+#  define __NR_inotify_init (__NR_Linux + 243)
+#  define __NR_inotify_add_watch (__NR_Linux + 244)
+#  define __NR_inotify_rm_watch (__NR_Linux + 245)
+# endif
+# if _MIPS_SIM == _MIPS_SIM_NABI32
+#  define __NR_Linux   6000
+#  define __NR_inotify_init (__NR_Linux + 247)
+#  define __NR_inotify_add_watch (__NR_Linux + 248)
+#  define __NR_inotify_rm_watch (__NR_Linux + 249)
+# endif
 #else
 # error "Unsupported architecture!"
 #endif
