forked from TrueCloudLab/restic
Portability fixes to internal/restic
syscall.Mknod is not available on AIX.
This commit is contained in:
parent
9c41e4a343
commit
18531e3d6f
3 changed files with 6 additions and 10 deletions
|
@ -1,7 +1,4 @@
|
|||
// +build !netbsd
|
||||
// +build !openbsd
|
||||
// +build !solaris
|
||||
// +build !windows
|
||||
// +build darwin freebsd linux
|
||||
|
||||
package main
|
||||
|
||||
|
|
|
@ -1,13 +1,15 @@
|
|||
// +build dragonfly linux netbsd openbsd freebsd solaris darwin
|
||||
// +build !windows
|
||||
|
||||
package restic
|
||||
|
||||
import (
|
||||
"os"
|
||||
"syscall"
|
||||
|
||||
"golang.org/x/sys/unix"
|
||||
)
|
||||
|
||||
var mknod = syscall.Mknod
|
||||
var mknod = unix.Mknod
|
||||
var lchown = os.Lchown
|
||||
|
||||
type statT syscall.Stat_t
|
||||
|
|
|
@ -1,7 +1,4 @@
|
|||
// +build !netbsd
|
||||
// +build !openbsd
|
||||
// +build !solaris
|
||||
// +build !windows
|
||||
// +build darwin freebsd linux
|
||||
|
||||
package restic
|
||||
|
||||
|
|
Loading…
Reference in a new issue