mirror of https://github.com/golang/go.git
fix: circular reference problem
This commit is contained in:
parent
a64399c21a
commit
ad4f8ff11f
|
|
@ -7,7 +7,8 @@
|
|||
package syscall
|
||||
|
||||
import (
|
||||
"os"
|
||||
err2 "errors"
|
||||
"io/fs"
|
||||
"runtime"
|
||||
"sync"
|
||||
"unsafe"
|
||||
|
|
@ -68,7 +69,7 @@ func NetlinkRIB(proto, family int) ([]byte, error) {
|
|||
sa := &SockaddrNetlink{Family: AF_NETLINK}
|
||||
if err := Bind(s, sa); err != nil {
|
||||
// Bind operation of Netlink socket is prohibited in Android11 and later versions
|
||||
if !(runtime.GOOS == "android" && os.IsPermission(err)) {
|
||||
if !(runtime.GOOS == "android" && err2.Is(err, fs.ErrPermission)) {
|
||||
return nil, err
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue