Skip to content

Commit

Permalink
Merge pull request #255 from libp2p/fix/nofile-build
Browse files Browse the repository at this point in the history
fix tests on freebsd
  • Loading branch information
Stebalien authored Feb 8, 2019
2 parents 3d75af0 + da7209a commit 93a42fc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nofile_posix.go → nofile_test_posix.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@ import "syscall"
func curFileLimit() uint64 {
var n syscall.Rlimit
syscall.Getrlimit(syscall.RLIMIT_NOFILE, &n)
return n.Cur
// cast because some platforms use int64 (e.g., freebsd)
return uint64(n.Cur)
}
File renamed without changes.

0 comments on commit 93a42fc

Please sign in to comment.