From 2ec2237909ba51d3fe10a2ee6cfb81f315408f68 Mon Sep 17 00:00:00 2001 From: unclejack Date: Tue, 25 Nov 2014 01:28:20 +0200 Subject: [PATCH] graph/load: add build tags to fix make cross Signed-off-by: Cristian Staretu --- graph/load.go | 2 ++ graph/load_unsupported.go | 11 +++++++++++ 2 files changed, 13 insertions(+) create mode 100644 graph/load_unsupported.go diff --git a/graph/load.go b/graph/load.go index 18c83c07de..76172d2555 100644 --- a/graph/load.go +++ b/graph/load.go @@ -1,3 +1,5 @@ +// +build linux + package graph import ( diff --git a/graph/load_unsupported.go b/graph/load_unsupported.go new file mode 100644 index 0000000000..164e9176a1 --- /dev/null +++ b/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") +}