diff src/core/filesystem.cc @ 402:d859306e2db4 default tip

filesystem: actually check for inotify instead of blindly assuming it exists
author Paper <paper@tflc.us>
date Fri, 07 Nov 2025 18:36:18 -0500
parents 2f89797b6a44
children
line wrap: on
line diff
--- a/src/core/filesystem.cc	Fri Nov 07 18:28:36 2025 -0500
+++ b/src/core/filesystem.cc	Fri Nov 07 18:36:18 2025 -0500
@@ -8,7 +8,7 @@
 
 #ifdef WIN32
 # include <windows.h>
-#elif defined(linux)
+#elif defined(HAVE_INOTIFY)
 /* ehhhh */
 # include <fcntl.h>
 # include <unistd.h>
@@ -368,7 +368,7 @@
 };
 
 using DefaultWatcher = Win32WatcherVista;
-#elif defined(__linux__)
+#elif defined(HAVE_INOTIFY)
 /* Inotify watcher */
 class InotifyWatcher : public StdFilesystemWatcher {
 public: