File 0002-Change-DUP2-to-DUP3-in-contrib-mesos-to-build-on-arm.patch of Package kubernetes.4864

From 3db65de5c269e0f591ccb31a3cba33f63726ec51 Mon Sep 17 00:00:00 2001
From: Yazen Ghannam <yazen.ghannam@linaro.org>
Date: Fri, 30 Oct 2015 10:47:09 -0500
Subject: [PATCH 2/2] Change DUP2 to DUP3 in contrib/mesos to build on arm64.

Signed-off-by: Yazen Ghannam <yazen.ghannam@linaro.org>
---
 contrib/mesos/pkg/redirfd/redirfd_unix.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/contrib/mesos/pkg/redirfd/redirfd_unix.go b/contrib/mesos/pkg/redirfd/redirfd_unix.go
index 4a535b7..60a7f45 100644
--- a/contrib/mesos/pkg/redirfd/redirfd_unix.go
+++ b/contrib/mesos/pkg/redirfd/redirfd_unix.go
@@ -112,7 +112,7 @@ func fd_move(to, from FileDescriptor) (err error) {
 		return
 	}
 	for {
-		_, _, e1 := syscall.RawSyscall(syscall.SYS_DUP2, uintptr(from), uintptr(to), 0)
+		_, _, e1 := syscall.RawSyscall(syscall.SYS_DUP3, uintptr(from), uintptr(to), 0)
 		if e1 != syscall.EINTR {
 			if e1 != 0 {
 				err = e1
-- 
2.8.4
openSUSE Build Service is sponsored by