Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This fixes build for programs that import fsnotify but fsnotify is not absolutely necessary for the program to be useful.
- Loading branch information
Showing
5 changed files
with
38 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
// Copyright 2020 The Go Authors. All rights reserved. | ||
// Use of this source code is governed by a BSD-style | ||
// license that can be found in the LICENSE file. | ||
|
||
// +build plan9 | ||
|
||
package fsnotify | ||
|
||
import "syscall" | ||
|
||
// Watcher watches a set of files, delivering events to a channel. | ||
type Watcher struct { | ||
Events chan Event | ||
Errors chan error | ||
} | ||
|
||
// NewWatcher establishes a new watcher with the underlying OS and begins waiting for events. | ||
func NewWatcher() (*Watcher, error) { | ||
return nil, syscall.EPLAN9 | ||
} | ||
|
||
// Close removes all watches and closes the events channel. | ||
func (w *Watcher) Close() error { | ||
return syscall.EPLAN9 | ||
} | ||
|
||
// Add starts watching the named file or directory (non-recursively). | ||
func (w *Watcher) Add(name string) error { | ||
return syscall.EPLAN9 | ||
} | ||
|
||
// Remove stops watching the named file or directory (non-recursively). | ||
func (w *Watcher) Remove(name string) error { | ||
return syscall.EPLAN9 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters