From 10d22b56f25146eddbcdfb8fd071aeac7ce62d5a Mon Sep 17 00:00:00 2001 From: Luca Bruno Date: Sun, 17 Apr 2016 09:33:06 +0200 Subject: [PATCH] pkg/sys: add SYS_SYNCFS definition for ppc64/ppc64le Added missing SYS_SYNCFS definition for ppc64 and ppc64le, fixing build failures on those architectures. Closes: coreos/rkt#2441 Signed-off-by: Luca Bruno --- pkg/sys/sys_linux_ppc64.go | 21 +++++++++++++++++++++ pkg/sys/sys_linux_ppc64le.go | 21 +++++++++++++++++++++ 2 files changed, 42 insertions(+) create mode 100644 pkg/sys/sys_linux_ppc64.go create mode 100644 pkg/sys/sys_linux_ppc64le.go diff --git a/pkg/sys/sys_linux_ppc64.go b/pkg/sys/sys_linux_ppc64.go new file mode 100644 index 0000000000..10a1d8f875 --- /dev/null +++ b/pkg/sys/sys_linux_ppc64.go @@ -0,0 +1,21 @@ +// Copyright 2016 The rkt Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// +build linux,ppc64 + +package sys + +const ( + SYS_SYNCFS = 348 +) diff --git a/pkg/sys/sys_linux_ppc64le.go b/pkg/sys/sys_linux_ppc64le.go new file mode 100644 index 0000000000..d88a80dab7 --- /dev/null +++ b/pkg/sys/sys_linux_ppc64le.go @@ -0,0 +1,21 @@ +// Copyright 2016 The rkt Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// +build linux,ppc64le + +package sys + +const ( + SYS_SYNCFS = 348 +)