From 22eb88ec49d8cd9286d75df9b011039b37d513a9 Mon Sep 17 00:00:00 2001 From: Dmitri Shuralyov Date: Fri, 15 May 2015 17:03:04 -0700 Subject: [PATCH] Fix nsenter package on unsupported platforms. Commit 4d1d6185abda6a5d43eac75f77242488b81f8937 added this nsenter_unsupported.go file in order for nsenter to be a valid (but empty, non-functional) Go package on unsupported platforms. However, on such platforms, Go still complains because there exists a .c file in this folder, but the package doesn't use cgo. Fix that by importing "C" pseudo-package. Signed-off-by: Dmitri Shuralyov --- nsenter/nsenter_unsupported.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nsenter/nsenter_unsupported.go b/nsenter/nsenter_unsupported.go index 2459c636..ac701ca3 100644 --- a/nsenter/nsenter_unsupported.go +++ b/nsenter/nsenter_unsupported.go @@ -1,3 +1,5 @@ // +build !linux !cgo package nsenter + +import "C"