xmtop/logging/logging_other.go
Sean E. Russell 5f37965467 Builds for darwin; requires docker.
osxcross has an old go; make go.mod match.

Directory clean-ups
2020-02-20 12:35:18 -06:00

12 lines
183 B
Go

// +build linux openbsd freebsd darwin
// +build !arm64
package logging
import "syscall"
import "os"
func stderrToLogfile(logfile *os.File) {
syscall.Dup2(int(logfile.Fd()), 2)
}