From 135bdf6b4d7c03ea4c206465253e113797344b74 Mon Sep 17 00:00:00 2001 From: Anton Date: Mon, 5 May 2014 18:40:41 +0200 Subject: [PATCH] +windows support --- bind/einhorn.go | 2 ++ bind/einhorn_windows.go | 12 ++++++++++++ bind/systemd.go | 2 ++ bind/systemd_windows.go | 6 ++++++ graceful/einhorn.go | 2 ++ 5 files changed, 24 insertions(+) create mode 100644 bind/einhorn_windows.go create mode 100644 bind/systemd_windows.go diff --git a/bind/einhorn.go b/bind/einhorn.go index f756fb0..3f7635f 100644 --- a/bind/einhorn.go +++ b/bind/einhorn.go @@ -1,3 +1,5 @@ +// +build !windows + package bind import ( diff --git a/bind/einhorn_windows.go b/bind/einhorn_windows.go new file mode 100644 index 0000000..093707f --- /dev/null +++ b/bind/einhorn_windows.go @@ -0,0 +1,12 @@ +// +build windows + +package bind + +import ( + "net" +) + +func einhornInit() {} +func einhornAck() {} +func einhornBind(fd int) (net.Listener, error) { return nil, nil } +func usingEinhorn() bool { return false } diff --git a/bind/systemd.go b/bind/systemd.go index 1648bc9..e7cd8e4 100644 --- a/bind/systemd.go +++ b/bind/systemd.go @@ -1,3 +1,5 @@ +// +build !windows + package bind import ( diff --git a/bind/systemd_windows.go b/bind/systemd_windows.go new file mode 100644 index 0000000..4ad4d20 --- /dev/null +++ b/bind/systemd_windows.go @@ -0,0 +1,6 @@ +// +build windows + +package bind + +func systemdInit() {} +func usingSystemd() bool { return false } diff --git a/graceful/einhorn.go b/graceful/einhorn.go index c8e7af2..8803ad9 100644 --- a/graceful/einhorn.go +++ b/graceful/einhorn.go @@ -1,3 +1,5 @@ +// +build !windows + package graceful import (