runc icon indicating copy to clipboard operation
runc copied to clipboard

libcontainer "type Namespaces []Namespace" in namespace.go compile error on mac osx.

Open qinguoan opened this issue 11 years ago • 2 comments

very strange problem. Just get undefined Namespace.

move "type Namespaces []Namespace" into namespaces_unix.go error disappear.

change "type Namespaces []Namespace" to "type Namespacess []Namespace" it's also ok..

can some one help me? many thanks!

qinguoan avatar Oct 20 '15 05:10 qinguoan

I just tried on linux it is OK, but on mac osx it's not OK...

qinguoan avatar Oct 20 '15 05:10 qinguoan

Just learn..

// +build linux freebsd

make namespace_unix.go invisible on mac osx..

qinguoan avatar Oct 20 '15 05:10 qinguoan