diff --git a/fuse/ipns/ipns_test.go b/fuse/ipns/ipns_test.go index 457cbb21bede..a9406670e113 100644 --- a/fuse/ipns/ipns_test.go +++ b/fuse/ipns/ipns_test.go @@ -1,4 +1,4 @@ -// +build !nofuse,!openbsd +// +build !nofuse,!openbsd,!netbsd package ipns diff --git a/fuse/ipns/ipns_unix.go b/fuse/ipns/ipns_unix.go index 8568f8c96670..0e3e0b736112 100644 --- a/fuse/ipns/ipns_unix.go +++ b/fuse/ipns/ipns_unix.go @@ -1,4 +1,4 @@ -// +build !nofuse,!openbsd +// +build !nofuse,!openbsd,!netbsd // package fuse/ipns implements a fuse filesystem that interfaces // with ipns, the naming system for ipfs. diff --git a/fuse/ipns/link_unix.go b/fuse/ipns/link_unix.go index 5f8df2732cd6..3cc9effd645a 100644 --- a/fuse/ipns/link_unix.go +++ b/fuse/ipns/link_unix.go @@ -1,4 +1,4 @@ -// +build !nofuse,!openbsd +// +build !nofuse,!openbsd,!netbsd package ipns diff --git a/fuse/mount/fuse.go b/fuse/mount/fuse.go index 67a24f08f6ab..da7efb025830 100644 --- a/fuse/mount/fuse.go +++ b/fuse/mount/fuse.go @@ -1,4 +1,4 @@ -// +build !nofuse,!windows,!openbsd +// +build !nofuse,!windows,!openbsd,!netbsd package mount diff --git a/fuse/node/mount_openbsd.go b/fuse/node/mount_openbsd.go deleted file mode 100644 index 7edbd910f899..000000000000 --- a/fuse/node/mount_openbsd.go +++ /dev/null @@ -1,13 +0,0 @@ -// +build !nofuse - -package node - -import ( - "errors" - - core "github.com/ipfs/go-ipfs/core" -) - -func Mount(node *core.IpfsNode, fsdir, nsdir string) error { - return errors.New("FUSE not supported on OpenBSD. See #5334 (https://git.io/fjMuC).") -} diff --git a/fuse/node/mount_test.go b/fuse/node/mount_test.go index 743d6cc25612..7b051453a904 100644 --- a/fuse/node/mount_test.go +++ b/fuse/node/mount_test.go @@ -1,4 +1,4 @@ -// +build !openbsd,!nofuse +// +build !openbsd,!nofuse,!netbsd package node diff --git a/fuse/node/mount_unix.go b/fuse/node/mount_unix.go index 1438cbe8e028..8c89c94b6708 100644 --- a/fuse/node/mount_unix.go +++ b/fuse/node/mount_unix.go @@ -1,4 +1,4 @@ -// +build !windows,!openbsd,!nofuse +// +build !windows,!openbsd,!netbsd,!nofuse package node diff --git a/fuse/readonly/ipfs_test.go b/fuse/readonly/ipfs_test.go index 7e44ca066440..e6d38507e69d 100644 --- a/fuse/readonly/ipfs_test.go +++ b/fuse/readonly/ipfs_test.go @@ -1,4 +1,4 @@ -// +build !nofuse,!openbsd +// +build !nofuse,!openbsd,!netbsd package readonly diff --git a/fuse/readonly/mount_unix.go b/fuse/readonly/mount_unix.go index 6988d8bdf7bc..e1065a2a1cda 100644 --- a/fuse/readonly/mount_unix.go +++ b/fuse/readonly/mount_unix.go @@ -1,4 +1,4 @@ -// +build linux darwin freebsd netbsd +// +build linux darwin freebsd // +build !nofuse package readonly diff --git a/fuse/readonly/readonly_unix.go b/fuse/readonly/readonly_unix.go index eeba6a1bd4e3..16863f31e45a 100644 --- a/fuse/readonly/readonly_unix.go +++ b/fuse/readonly/readonly_unix.go @@ -1,4 +1,4 @@ -// +build linux darwin freebsd netbsd +// +build linux darwin freebsd // +build !nofuse package readonly diff --git a/mk/util.mk b/mk/util.mk index 734640d29038..352918402d07 100644 --- a/mk/util.mk +++ b/mk/util.mk @@ -26,6 +26,9 @@ SUPPORTED_PLATFORMS += freebsd-amd64 SUPPORTED_PLATFORMS += openbsd-386 SUPPORTED_PLATFORMS += openbsd-amd64 +SUPPORTED_PLATFORMS += netbsd-386 +SUPPORTED_PLATFORMS += netbsd-amd64 + space:= space+= comma:=,