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 darwin freebsd linux
|
||||||
// +build !openbsd
|
|
||||||
// +build !solaris
|
|
||||||
// +build !windows
|
|
||||||
|
|
||||||
package main
|
package main
|
||||||
|
|
||||||
|
|
|
@ -1,13 +1,15 @@
|
||||||
// +build dragonfly linux netbsd openbsd freebsd solaris darwin
|
// +build !windows
|
||||||
|
|
||||||
package restic
|
package restic
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"os"
|
"os"
|
||||||
"syscall"
|
"syscall"
|
||||||
|
|
||||||
|
"golang.org/x/sys/unix"
|
||||||
)
|
)
|
||||||
|
|
||||||
var mknod = syscall.Mknod
|
var mknod = unix.Mknod
|
||||||
var lchown = os.Lchown
|
var lchown = os.Lchown
|
||||||
|
|
||||||
type statT syscall.Stat_t
|
type statT syscall.Stat_t
|
||||||
|
|
|
@ -1,7 +1,4 @@
|
||||||
// +build !netbsd
|
// +build darwin freebsd linux
|
||||||
// +build !openbsd
|
|
||||||
// +build !solaris
|
|
||||||
// +build !windows
|
|
||||||
|
|
||||||
package restic
|
package restic
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue