Fix cross compile non cgo and linux systems

Docker-DCO-1.1-Signed-off-by: Michael Crosby <michael@docker.com> (github: crosbymichael)
Upstream-commit: 7a8ea91392e0cc97caf2a6edc3b262b33a5b446d
Component: engine
This commit is contained in:
Michael Crosby
2014-07-16 16:39:15 -07:00
parent d18a40b4ac
commit f48be61b0a
7 changed files with 41 additions and 6 deletions

View File

@ -1,4 +1,4 @@
// +build linux
// +build linux,cgo
package native

View File

@ -1,4 +1,4 @@
// +build linux
// +build linux,cgo
package native

View File

@ -0,0 +1,13 @@
// +build linux,!cgo
package native
import (
"fmt"
"github.com/dotcloud/docker/daemon/execdriver"
)
func NewDriver(root, initPath string) (execdriver.Driver, error) {
return nil, fmt.Errorf("native driver not supported on non-linux")
}

View File

@ -1,4 +1,4 @@
// +build linux
// +build linux,cgo
package native