Browse Source

graph/load: add build tags to fix make cross

Signed-off-by: Cristian Staretu <cristian.staretu@gmail.com>
unclejack 10 years ago
parent
commit
2ec2237909
2 changed files with 13 additions and 0 deletions
  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")
+}