| 1 | //go:build !linux |
| 2 | |
| 3 | package main |
| 4 | |
| 5 | import "errors" |
| 6 | |
| 7 | // wakeSupported says whether watch can be given --woken-by here. Watching a |
| 8 | // wake directory needs Linux's inotify. Anywhere else, watch passes at its |
| 9 | // interval, as it does without the flag. |
| 10 | const wakeSupported = false |
| 11 | |
| 12 | func watchDir(string) (watcher, error) { |
| 13 | return nil, errors.New("watching a wake directory needs Linux's inotify") |
| 14 | } |