File: 0001-Support_mips64el.patch

package info (click to toggle)
golang-golang-x-sys 0.0~git20161122.0.30237cf-1~bpo8%2B2
  • links: PTS, VCS
  • area: main
  • in suites: jessie-backports
  • size: 4,568 kB
  • sloc: perl: 1,152; sh: 680; asm: 332; ansic: 37; makefile: 11
file content (22 lines) | stat: -rw-r--r-- 473 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
mips64: Add a Dup2 compatibility function, as it is not implemented in that
arch.

--- a/unix/syscall_linux_mips64x.go
+++ b/unix/syscall_linux_mips64x.go
@@ -3,7 +3,7 @@
 // license that can be found in the LICENSE file.
 
 // +build linux
-// +build mips64 mips64le
+// +build mips64 mips64le mipsn64
 
 package unix
 
@@ -206,3 +206,7 @@
 	}
 	return poll(&fds[0], len(fds), timeout)
 }
+
+func Dup2(oldfd int, newfd int) (err error) {
+	return Dup3(oldfd, newfd, 0)
+}