-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix the build of spawn on windows after the syslog changes
I forgot syslog doesn't exist on windows. Now we're providing a nil io.WriteCloser to get code using flags.Syslog to compile at least. I might have to change it to an interface or switch to a different syslog library that supports remote syslogging on any platform (or write that myself I think it's just a socket with text).
- Loading branch information
Showing
4 changed files
with
16 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
//go:build nosyslog || windows | ||
|
||
package flags | ||
|
||
import "io" | ||
|
||
// This is provided so that we can still compile on windows and if people use | ||
// -nosyslog, since flags.Syslog is a public API. | ||
|
||
var Syslog io.WriteCloser = nil |