aboutsummaryrefslogtreecommitdiffstats
path: root/worker/worker_enabled.go
diff options
context:
space:
mode:
authorRobin Jarry <robin@jarry.cc>2023-03-09 22:26:03 +0100
committerRobin Jarry <robin@jarry.cc>2023-03-10 09:19:09 +0100
commit60078b8452867c9ab40c9623ef63169bdb090c83 (patch)
treef4ea0a0b0cbeac06a3262d042826b2a8484bc1fc /worker/worker_enabled.go
parent5ae7a23e1ec99f1e552967ed9d058133b6c860c6 (diff)
downloadaerc-60078b8452867c9ab40c9623ef63169bdb090c83.tar.gz
fswatcher: fix bsd support
Fix the following error when running maildir on freebsd: could not create file system watcher: Unsupported OS: freebsd Do not register based on os type. Register based on supported API. Rename linux -> inotify and darwin -> fsevents. Only build fsevents on darwin, and inotify on all other platforms. Fixes: a0935a3de0ce ("worker/lib: implement an fswatcher interface") Reported-by: Jens Grassel <jens@wegtam.com> Signed-off-by: Robin Jarry <robin@jarry.cc> Tested-by: Jens Grassel <jens@wegtam.com>
Diffstat (limited to 'worker/worker_enabled.go')
-rw-r--r--worker/worker_enabled.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/worker/worker_enabled.go b/worker/worker_enabled.go
index a644525f..697ca402 100644
--- a/worker/worker_enabled.go
+++ b/worker/worker_enabled.go
@@ -3,7 +3,7 @@ package worker
// the following workers are always enabled
import (
_ "git.sr.ht/~rjarry/aerc/worker/imap"
+ _ "git.sr.ht/~rjarry/aerc/worker/lib/watchers"
_ "git.sr.ht/~rjarry/aerc/worker/maildir"
-
_ "git.sr.ht/~rjarry/aerc/worker/mbox"
)