graph/load: add build tags to fix make cross

Signed-off-by: Cristian Staretu <cristian.staretu@gmail.com>
This commit is contained in:
unclejack 2014-11-25 01:28:20 +02:00
parent f6d9780229
commit 2ec2237909
2 changed files with 13 additions and 0 deletions

View file

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

11
graph/load_unsupported.go Normal file
View file

@ -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")
}