--- inotify-tools-3.13/libinotifytools/src/inotifytools/inotify-nosys.h.orig	2009-09-16 14:50:54.000000000 -0400
+++ inotify-tools-3.13/libinotifytools/src/inotifytools/inotify-nosys.h	2009-09-16 14:52:49.000000000 -0400
@@ -144,6 +144,11 @@
 # define __NR_inotify_add_watch 254
 # define __NR_inotify_rm_watch 255
 
+#elif defined(__nios2__)
+# define __NR_inotify_init 284
+# define __NR_inotify_add_watch 285
+# define __NR_inotify_rm_watch 286
+
 #else
 # error "Unsupported architecture!"
 #endif
