mirror of
https://github.com/octoleo/restic.git
synced 2024-11-26 14:56:29 +00:00
Merge pull request #578 from restic/fix-build-on-arm
Fix build on linux/arm
This commit is contained in:
commit
ca14942c80
@ -323,11 +323,14 @@ func (env *TravisEnvironment) RunTests() error {
|
|||||||
if *runCrossCompile && !(runtime.Version() < "go1.7") {
|
if *runCrossCompile && !(runtime.Version() < "go1.7") {
|
||||||
// compile for all target architectures with tags
|
// compile for all target architectures with tags
|
||||||
for _, tags := range []string{"release", "debug"} {
|
for _, tags := range []string{"release", "debug"} {
|
||||||
runWithEnv(env.env, "gox", "-verbose",
|
err := runWithEnv(env.env, "gox", "-verbose",
|
||||||
"-osarch", strings.Join(env.goxOSArch, " "),
|
"-osarch", strings.Join(env.goxOSArch, " "),
|
||||||
"-tags", tags,
|
"-tags", tags,
|
||||||
"-output", "/tmp/{{.Dir}}_{{.OS}}_{{.Arch}}",
|
"-output", "/tmp/{{.Dir}}_{{.OS}}_{{.Arch}}",
|
||||||
"cmds/restic")
|
"cmds/restic")
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -145,6 +145,15 @@ type Fsid struct {
|
|||||||
X__val [2]int32
|
X__val [2]int32
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const (
|
||||||
|
FADV_NORMAL = 0x0
|
||||||
|
FADV_RANDOM = 0x1
|
||||||
|
FADV_SEQUENTIAL = 0x2
|
||||||
|
FADV_WILLNEED = 0x3
|
||||||
|
FADV_DONTNEED = 0x4
|
||||||
|
FADV_NOREUSE = 0x5
|
||||||
|
)
|
||||||
|
|
||||||
type Flock_t struct {
|
type Flock_t struct {
|
||||||
Type int16
|
Type int16
|
||||||
Whence int16
|
Whence int16
|
||||||
|
Loading…
Reference in New Issue
Block a user