1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/pkg/parsers/kernel/uname_unsupported.go

19 lines
364 B
Go
Raw Normal View History

// +build !linux,!solaris
package kernel
2013-05-15 20:40:47 -04:00
import (
"errors"
)
// Utsname represents the system name structure.
// It is defined here to make it portable as it is available on linux but not
// on windows.
type Utsname struct {
Release [65]byte
}
func uname() (*Utsname, error) {
return nil, errors.New("Kernel version detection is available only on linux")
2013-05-15 20:40:47 -04:00
}