mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
utils: fix compilation on Darwin
Although Docker daemon does not work on Darwin, the API client will have to work. That said, I'm fixing the compilation of the package on Darwin.
This commit is contained in:
parent
66e9f155c3
commit
2b55874584
2 changed files with 8 additions and 4 deletions
|
@ -2,9 +2,12 @@ package utils
|
|||
|
||||
import (
|
||||
"errors"
|
||||
"syscall"
|
||||
)
|
||||
|
||||
func uname() (*syscall.Utsname, error) {
|
||||
type Utsname struct {
|
||||
Release [65]byte
|
||||
}
|
||||
|
||||
func uname() (*Utsname, error) {
|
||||
return nil, errors.New("Kernel version detection is not available on darwin")
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue