Skip to content

"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files

Fix redirecting stderr on unix-like OSes - fixes #363

Nick Craig-Woodb5c52091624c
diff --git a/redirect_stderr.go b/redirect_stderr.go
index eab4b39ca..6dbeb6014 100644
--- a/redirect_stderr.go
+++ b/redirect_stderr.go
@@ -1,6 +1,6 @@
// Log the panic to the log file - for oses which can't do this
-//+build !windows,!unix
+// +build !windows,!darwin,!dragonfly,!freebsd,!linux,!nacl,!netbsd,!openbsd
package main
diff --git a/redirect_stderr_unix.go b/redirect_stderr_unix.go
index 5827f2b5f..03c74cdd9 100644
--- a/redirect_stderr_unix.go
+++ b/redirect_stderr_unix.go
@@ -1,6 +1,6 @@
// Log the panic under unix to the log file
-//+build unix
+// +build darwin dragonfly freebsd linux nacl netbsd openbsd
package main
diff --git a/redirect_stderr_windows.go b/redirect_stderr_windows.go
index 6b03ba00d..03e05f3c1 100644
--- a/redirect_stderr_windows.go
+++ b/redirect_stderr_windows.go
@@ -4,7 +4,7 @@
//
// http://play.golang.org/p/kLtct7lSUg
-//+build windows
+// +build windows
package main