瀏覽代碼

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"
 	"os/exec"
 )
 )
 
 
+func Self() string {
+	return ""
+}
+
 // Command is unsupported on operating systems apart from Linux, Windows, and Darwin.
 // Command is unsupported on operating systems apart from Linux, Windows, and Darwin.
 func Command(args ...string) *exec.Cmd {
 func Command(args ...string) *exec.Cmd {
 	return nil
 	return nil