mirror of
https://github.com/restic/restic.git
synced 2026-11-18 22:58:07 +00:00
Portability fixes to internal/restic
syscall.Mknod is not available on AIX.
This commit is contained in:
1 parent
9c41e4a343
commit
18531e3d6f
3 files changed
+6
-10
No files matched your search
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user