]> Cypherpunks repositories - gostls13.git/commit
x/net/route: use libc calls on Darwin
authorKeith Randall <keithr@alum.mit.edu>
Thu, 8 Nov 2018 05:25:42 +0000 (21:25 -0800)
committerKeith Randall <khr@golang.org>
Wed, 14 Nov 2018 22:39:08 +0000 (22:39 +0000)
commit82c260099d8178c55978e402385b8e19a6259011
tree0d15cfb1e8267a8156816865108aaccc1798ce98
parent8dba66dfeb8eb19b075d45a84dae9bcdddb347d6
x/net/route: use libc calls on Darwin

Starting with 1.12, we must use syscall versions
of sysctl instead of the raw syscall.

An identical CL went into the source copy at golang.org/x/net/route.
This is just a cherry pick of that CL.
(CL: https://go-review.googlesource.com/c/net/+/148597)

Change-Id: I6286ab3e49f82512491afb5bcf349e89ab5645ab
Reviewed-on: https://go-review.googlesource.com/c/149637
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/vendor/golang_org/x/net/route/empty.s [new file with mode: 0644]
src/vendor/golang_org/x/net/route/syscall.go
src/vendor/golang_org/x/net/route/syscall_go1_11_darwin.go [new file with mode: 0644]
src/vendor/golang_org/x/net/route/syscall_go1_12_darwin.go [new file with mode: 0644]