Skip to content

Commit

Permalink
fix netbsd build
Browse files Browse the repository at this point in the history
  • Loading branch information
Stebalien committed Jul 22, 2019
1 parent 94bbc1c commit 90c656d
Show file tree
Hide file tree
Showing 11 changed files with 14 additions and 11 deletions.
2 changes: 1 addition & 1 deletion fuse/ipns/ipns_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build !nofuse,!openbsd
// +build !nofuse,!openbsd,!netbsd

package ipns

Expand Down
2 changes: 1 addition & 1 deletion fuse/ipns/ipns_unix.go
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion fuse/ipns/link_unix.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build !nofuse,!openbsd
// +build !nofuse,!openbsd,!netbsd

package ipns

Expand Down
2 changes: 1 addition & 1 deletion fuse/mount/fuse.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build !nofuse,!windows,!openbsd
// +build !nofuse,!windows,!openbsd,!netbsd

package mount

Expand Down
4 changes: 2 additions & 2 deletions fuse/node/mount_openbsd.go → fuse/node/mount_notsupp.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build !nofuse
// +build !nofuse,openbsd !nofuse,netbsd

package node

Expand All @@ -9,5 +9,5 @@ import (
)

func Mount(node *core.IpfsNode, fsdir, nsdir string) error {
return errors.New("FUSE not supported on OpenBSD. See #5334 (https://git.io/fjMuC).")
return errors.New("FUSE not supported on OpenBSD or NetBSD. See #5334 (https://git.io/fjMuC).")
}
2 changes: 1 addition & 1 deletion fuse/node/mount_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build !openbsd,!nofuse
// +build !openbsd,!nofuse,!netbsd

package node

Expand Down
2 changes: 1 addition & 1 deletion fuse/node/mount_unix.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build !windows,!openbsd,!nofuse
// +build !windows,!openbsd,!netbsd,!nofuse

package node

Expand Down
2 changes: 1 addition & 1 deletion fuse/readonly/ipfs_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build !nofuse,!openbsd
// +build !nofuse,!openbsd,!netbsd

package readonly

Expand Down
2 changes: 1 addition & 1 deletion fuse/readonly/mount_unix.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build linux darwin freebsd netbsd
// +build linux darwin freebsd
// +build !nofuse

package readonly
Expand Down
2 changes: 1 addition & 1 deletion fuse/readonly/readonly_unix.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build linux darwin freebsd netbsd
// +build linux darwin freebsd
// +build !nofuse

package readonly
Expand Down
3 changes: 3 additions & 0 deletions mk/util.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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:=,
Expand Down

0 comments on commit 90c656d

Please sign in to comment.