Skip to content
This repository has been archived by the owner on Dec 13, 2018. It is now read-only.

Commit

Permalink
Fix nsenter package on unsupported platforms.
Browse files Browse the repository at this point in the history
Commit 4d1d618 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 <[email protected]>
  • Loading branch information
dmitshur committed May 16, 2015
1 parent 7adbe0f commit 22eb88e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions nsenter/nsenter_unsupported.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build !linux !cgo

package nsenter

import "C"

0 comments on commit 22eb88e

Please sign in to comment.