# endif
#endif /* wxUSE_CONSOLE_EVENTLOOP */
+#if wxUSE_FSWATCHER
+# if !defined(wxHAS_INOTIFY) && !defined(wxHAS_KQUEUE)
+# ifdef wxABORT_ON_CONFIG_ERROR
+# error "wxFileSystemWatcher requires either inotify() or kqueue()"
+# else
+# undef wxUSE_FSWATCHER
+# define wxUSE_FSWATCHER 0
+# endif
+# endif
+#endif /* wxUSE_FSWATCHER */
+
#if wxUSE_GSTREAMER
# if !wxUSE_THREADS
# ifdef wxABORT_ON_CONFIG_ERROR