mirror of
https://github.com/golang/sys.git
synced 2026-02-09 04:06:04 +03:00
Android seems to block the accept syscall in newer versions. Use accept4 instead on kernel versions that support it (Linux 2.6.28 and newer) and fall back to accept on ENOSYS. Updates golang/go#45767 Change-Id: If557eaaaa0b69112bbe66ed820fbb382afb53b04 Reviewed-on: https://go-review.googlesource.com/c/sys/+/313690 Trust: Tobias Klauser <tobias.klauser@gmail.com> Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
67 KiB
67 KiB