Skip to content

Commit

Permalink
Fix #55: compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
sevlyar committed May 4, 2019
1 parent fedf95d commit 2ee3304
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lock_file_unix.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build darwin dragonfly freebsd linux netbsd openbsd plan9 !solaris
// +build darwin dragonfly freebsd linux netbsd openbsd plan9

package daemon

Expand Down
6 changes: 2 additions & 4 deletions syscall_dup.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,8 @@

package daemon

import (
"syscall"
)
import "golang.org/x/sys/unix"

func syscallDup(oldfd int, newfd int) (err error) {
return syscall.Dup2(oldfd, newfd)
return unix.Dup2(oldfd, newfd)
}

0 comments on commit 2ee3304

Please sign in to comment.