Fix cross compile for network and node pkgs

Docker-DCO-1.1-Signed-off-by: Michael Crosby <michael@docker.com> (github: crosbymichael)
This commit is contained in:
Michael Crosby 2014-06-23 16:23:51 -07:00
parent 626420b6c4
commit d2c7999a57
7 changed files with 16 additions and 2 deletions

View File

@ -3,9 +3,11 @@
package nodes
import (
"errors"
"github.com/docker/libcontainer/devices"
)
func CreateDeviceNodes(rootfs string, nodesToCreate []*devices.Device) error {
return ErrUnsupported
return errors.New("Unsupported method")
}

View File

@ -3,6 +3,7 @@
package namespaces
import (
"github.com/docker/libcontainer"
"github.com/docker/libcontainer/cgroups"
)

View File

@ -1,3 +1,5 @@
// +build linux
package network
import (

View File

@ -1,3 +1,5 @@
// +build linux
package network
import (

View File

@ -1,8 +1,11 @@
// +build linux
package network
import (
"github.com/docker/libcontainer/netlink"
"net"
"github.com/docker/libcontainer/netlink"
)
func InterfaceUp(name string) error {

View File

@ -1,3 +1,5 @@
// +build linux
package network
import (

View File

@ -1,3 +1,5 @@
// +build linux
package network
import (