Skip to content

Commit

Permalink
Add netbsd support
Browse files Browse the repository at this point in the history
  • Loading branch information
exekias committed May 29, 2017
1 parent 89658be commit 83d94aa
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion client/client_unix.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build linux freebsd solaris openbsd darwin
// +build linux freebsd solaris openbsd darwin netbsd

package client

Expand Down
13 changes: 13 additions & 0 deletions pkg/system/stat_netbsd.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package system

import "syscall"

// fromStatT converts a syscall.Stat_t type to a system.Stat_t type
func fromStatT(s *syscall.Stat_t) (*StatT, error) {
return &StatT{size: s.Size,
mode: uint32(s.Mode),
uid: s.Uid,
gid: s.Gid,
rdev: uint64(s.Rdev),
mtim: s.Mtimespec}, nil
}

0 comments on commit 83d94aa

Please sign in to comment.