Explorar o código

graph/load: add build tags to fix make cross

Signed-off-by: Cristian Staretu <cristian.staretu@gmail.com>
unclejack %!s(int64=10) %!d(string=hai) anos
pai
achega
2ec2237909
Modificáronse 2 ficheiros con 13 adicións e 0 borrados
  1. 2 0
      graph/load.go
  2. 11 0
      graph/load_unsupported.go

+ 2 - 0
graph/load.go

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

+ 11 - 0
graph/load_unsupported.go

@@ -0,0 +1,11 @@
+// +build !linux
+
+package graph
+
+import (
+	"github.com/docker/docker/engine"
+)
+
+func (s *TagStore) CmdLoad(job *engine.Job) engine.Status {
+	return job.Errorf("CmdLoad is not supported on this platform")
+}