+#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 */
+