Skip to content

Commit

Permalink
lib/fs: Watching is unsupported on android/amd64 (fixes syncthing#8709)
Browse files Browse the repository at this point in the history
  • Loading branch information
calmh committed Dec 8, 2022
1 parent ab611f2 commit a6b6439
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions lib/fs/basicfs_watch.go
Expand Up @@ -4,8 +4,10 @@
// License, v. 2.0. If a copy of the MPL was not distributed with this file,
// You can obtain one at http://mozilla.org/MPL/2.0/.

//go:build (!solaris && !darwin) || (solaris && cgo) || (darwin && cgo)
// +build !solaris,!darwin solaris,cgo darwin,cgo
//go:build !(solaris && !cgo) && !(darwin && !cgo) && !(android && amd64)
// +build !solaris cgo
// +build !darwin cgo
// +build !android !amd64

package fs

Expand Down
4 changes: 2 additions & 2 deletions lib/fs/basicfs_watch_unsupported.go
Expand Up @@ -4,8 +4,8 @@
// License, v. 2.0. If a copy of the MPL was not distributed with this file,
// You can obtain one at http://mozilla.org/MPL/2.0/.

//go:build (solaris && !cgo) || (darwin && !cgo)
// +build solaris,!cgo darwin,!cgo
//go:build (solaris && !cgo) || (darwin && !cgo) || (android && amd64)
// +build solaris,!cgo darwin,!cgo android,amd64

package fs

Expand Down

0 comments on commit a6b6439

Please sign in to comment.