Fix compilation for all tags

Signed-off-by: Alexander Morozov <lk4d4@docker.com>
This commit is contained in:
Alexander Morozov 2015-12-07 12:38:31 -08:00
parent 59093a22d0
commit 18d01f19e4
4 changed files with 39 additions and 5 deletions

View file

@ -1,12 +1,13 @@
// +build !libcontainer
// +build !libcontainer,!runc
package containerd
import (
"github.com/docker/containerd/runc"
"errors"
"github.com/docker/containerd/runtime"
)
func newRuntime(stateDir string) (runtime.Runtime, error) {
return runc.NewRuntime(stateDir)
return nil, errors.New("unsupported platform")
}