Browse Source

lib/fs: Watching is unsupported on android/amd64 (fixes #8709) (#8710)

Jakob Borg 2 years ago
parent
commit
ad0044fec8
2 changed files with 6 additions and 4 deletions
  1. 4 2
      lib/fs/basicfs_watch.go
  2. 2 2
      lib/fs/basicfs_watch_unsupported.go

+ 4 - 2
lib/fs/basicfs_watch.go

@@ -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
 

+ 2 - 2
lib/fs/basicfs_watch_unsupported.go

@@ -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