浏览代码

fix build on OpenBSD by defining Self()

Signed-off-by: Fabian Raetz <fabian.raetz@gmail.com>
Fabian Raetz 7 年之前
父节点
当前提交
21537b818d
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      pkg/reexec/command_unsupported.go

+ 4 - 0
pkg/reexec/command_unsupported.go

@@ -6,6 +6,10 @@ import (
 	"os/exec"
 )
 
+func Self() string {
+	return ""
+}
+
 // Command is unsupported on operating systems apart from Linux, Windows, and Darwin.
 func Command(args ...string) *exec.Cmd {
 	return nil