You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is related to nats-io/nats-server#2445
I want to build nats-server on openbsd but it fails due to undefined fields in syscall.Statfs_t on OpenBSD.
I tracked it somewhat down and can tell that this syscalls to Statfs work fine when calling with an "F_" prefix:
var fs syscall.Statfs_t
if err := syscall.Statfs(path, &fs); err == nil {
fmt.Println(fs.F_bavail)
fmt.Println(fs.F_bsize)
}
The field definition on OpenBSD can be found here: http://man.openbsd.org/statfs
But they look the same (with that 'f_' prefix) on Linux and Darwin where nats-server builds fine.
What did you expect to see?
This should compile on OpenBSD
var fs syscall.Statfs_t
if err := syscall.Statfs(path, &fs); err == nil {
fmt.Println(fs.Bavail)
fmt.Println(fs.Bsize)
}
What did you see instead?
This compiles and runs on OpenBSD fine but is different from other OSes
var fs syscall.Statfs_t
if err := syscall.Statfs(path, &fs); err == nil {
fmt.Println(fs.F_bavail)
fmt.Println(fs.F_bsize)
}
The text was updated successfully, but these errors were encountered:
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Go 1.17 is not yet available on OpenBSD
What operating system and processor architecture are you using (
go env
)?openbsd/amd64
go env
OutputWhat did you do?
This is related to nats-io/nats-server#2445
I want to build nats-server on openbsd but it fails due to undefined fields in syscall.Statfs_t on OpenBSD.
I tracked it somewhat down and can tell that this syscalls to
Statfs
work fine when calling with an "F_" prefix:The field definition on OpenBSD can be found here: http://man.openbsd.org/statfs
But they look the same (with that 'f_' prefix) on Linux and Darwin where nats-server builds fine.
What did you expect to see?
This should compile on OpenBSD
What did you see instead?
This compiles and runs on OpenBSD fine but is different from other OSes
The text was updated successfully, but these errors were encountered: